public function test_adding_wrong_class_triggers_error() { $col = new Collection('TestClassA'); $col->add(new TestClassB()); }