public function ArrayCollectionTest::testEmpty in Plug 7
File
- lib/
doctrine/ collections/ tests/ Doctrine/ Tests/ Common/ Collections/ ArrayCollectionTest.php, line 219
Class
- ArrayCollectionTest
- Tests for { @covers \Doctrine\Common\Collections\ArrayCollection
Namespace
Doctrine\Tests\Common\CollectionsCode
public function testEmpty() {
$collection = new ArrayCollection();
$this
->assertTrue($collection
->isEmpty(), "Empty collection");
$collection
->add(1);
$this
->assertFalse($collection
->isEmpty(), "Not empty collection");
}