Пример #1
0
 public function testEmpty()
 {
     $collection = new ArrayCollection();
     $this->assertTrue($collection->isEmpty(), 'Empty collection');
     $collection->add(1);
     $this->assertFalse($collection->isEmpty(), 'Not empty collection');
 }