public function CollectionTest::testMatching in Plug 7
@group DDC-1637
File
- lib/
doctrine/ collections/ tests/ Doctrine/ Tests/ Common/ Collections/ CollectionTest.php, line 212
Class
Namespace
Doctrine\Tests\Common\CollectionsCode
public function testMatching() {
$this
->fillMatchingFixture();
$col = $this->collection
->matching(new Criteria(Criteria::expr()
->eq("foo", "bar")));
$this
->assertInstanceOf('Doctrine\\Common\\Collections\\Collection', $col);
$this
->assertNotSame($col, $this->collection);
$this
->assertEquals(1, count($col));
}