1
0
mirror of synced 2024-12-14 07:06:04 +03:00

use of assertCount

This commit is contained in:
Stefano Rodriguez 2012-09-07 14:44:18 +02:00
parent bb8dd6cb11
commit 9a14b40495

View File

@ -174,7 +174,7 @@ class OneToManyBidirectionalAssociationTest extends \Doctrine\Tests\OrmFunctiona
$this->assertEquals(2, count($results));
}
public function testMatchingBis()
public function testMatchingBis()
{
$this->_createFixture();
@ -190,12 +190,12 @@ class OneToManyBidirectionalAssociationTest extends \Doctrine\Tests\OrmFunctiona
));
$this->assertInstanceOf('Doctrine\Common\Collections\Collection', $results);
$this->assertEquals(1, count($results));
$this->assertCount(1, $results);
$results = $features->matching(new Criteria());
$this->assertInstanceOf('Doctrine\Common\Collections\Collection', $results);
$this->assertEquals(3, count($results));
$this->assertCount(3, $results);
}
private function _createFixture()