public function testIsEmptyInArrayCollection() { $collection = new ArrayCollection(); $this->assertTrue($collection->isEmpty()); $collection->add('element'); $this->assertFalse($collection->isEmpty()); }