public function CollectionTest::testMatchingSlice in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/doctrine/collections/tests/Doctrine/Tests/Common/Collections/CollectionTest.php \Doctrine\Tests\Common\Collections\CollectionTest::testMatchingSlice()
@group DDC-1637
File
- vendor/
doctrine/ collections/ tests/ Doctrine/ Tests/ Common/ Collections/ CollectionTest.php, line 241
Class
Namespace
Doctrine\Tests\Common\CollectionsCode
public function testMatchingSlice() {
$this
->fillMatchingFixture();
$col = $this->collection
->matching(new Criteria(null, null, 1, 1));
$this
->assertInstanceOf('Doctrine\\Common\\Collections\\Collection', $col);
$this
->assertNotSame($col, $this->collection);
$this
->assertEquals(1, count($col));
$this
->assertEquals('baz', $col[0]->foo);
}