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