add() public méthode

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