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