clearElements() public method

Clear elements
public clearElements ( ) : Collection
return Collection
Example #1
0
 /**
  * Test
  *
  * @return void
  */
 public function testClearElements()
 {
     $model = Model::fromIdentifier('identifier-collection-test');
     $this->object->addElement($model);
     $this->object->clearElements();
     $this->assertEquals(0, count($this->object->getElements()));
 }