Exemplo n.º 1
0
 public function testRemoveElement()
 {
     $notExistObj = new Base();
     $notExistObj->setId(78979);
     $this->assertFalse($this->arrayCollection->removeElement($notExistObj));
     $this->arrayCollection->removeElement($this->data[1]);
     $this->assertEquals(array($this->data[0]), $this->arrayCollection->toArray());
 }