add() public method

public add ( $item )
Esempio n. 1
0
 /**
  * @expectedException Collections\Exceptions\InvalidArgumentException
  */
 public function test_adding_wrong_class_triggers_error()
 {
     $col = new Collection('TestClassA');
     $col->add(new TestClassB());
 }