public function testCount() { $this->assertEquals(2, $this->arrayCollection->count()); $newObj = new Base(); $newObj->setId(65); $this->arrayCollection->add($newObj); $this->assertEquals(3, $this->arrayCollection->count()); }