コード例 #1
0
 public function testListRemoveMethodCanBeCalledOnTraversableObjects()
 {
     $testCase = new TestsCases\BaseTestCase();
     $testCase->addDoctrineCollectionItem("item1");
     $testCase->addDoctrineCollectionItem("item2");
     $testCase->removeDoctrineCollectionItem("item1");
     $this->assertEquals(1, count($testCase->getDoctrineCollectionItems()));
 }