public function MockObjectComparatorTest::assertEqualsSucceedsProvider in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/sebastian/comparator/tests/MockObjectComparatorTest.php \SebastianBergmann\Comparator\MockObjectComparatorTest::assertEqualsSucceedsProvider()
File
- vendor/
sebastian/ comparator/ tests/ MockObjectComparatorTest.php, line 50
Class
- MockObjectComparatorTest
- @coversDefaultClass SebastianBergmann\Comparator\MockObjectComparator
Namespace
SebastianBergmann\ComparatorCode
public function assertEqualsSucceedsProvider() {
// cyclic dependencies
$book1 = $this
->getMock('SebastianBergmann\\Comparator\\Book', null);
$book1->author = $this
->getMock('SebastianBergmann\\Comparator\\Author', null, array(
'Terry Pratchett',
));
$book1->author->books[] = $book1;
$book2 = $this
->getMock('SebastianBergmann\\Comparator\\Book', null);
$book2->author = $this
->getMock('SebastianBergmann\\Comparator\\Author', null, array(
'Terry Pratchett',
));
$book2->author->books[] = $book2;
$object1 = $this
->getMock('SebastianBergmann\\Comparator\\SampleClass', null, array(
4,
8,
15,
));
$object2 = $this
->getMock('SebastianBergmann\\Comparator\\SampleClass', null, array(
4,
8,
15,
));
return array(
array(
$object1,
$object1,
),
array(
$object1,
$object2,
),
array(
$book1,
$book1,
),
array(
$book1,
$book2,
),
array(
$this
->getMock('SebastianBergmann\\Comparator\\Struct', null, array(
2.3,
)),
$this
->getMock('SebastianBergmann\\Comparator\\Struct', null, array(
2.5,
)),
0.5,
),
);
}