public function test_can_add_subtypes() { $col = new Collection('TestClassA'); $col = $col->add(new TestClassExtendsA(1)); $this->assertEquals(1, $col->count()); }