public static function isImplementation($class, $interface) { return ArrayList::fromArray("string", class_implements($class))->contains($interface); }
function testIndexFound() { $expected = ArrayList::fromArray("integer", array(0, 2)); $this->assertEqual($expected, $this->list->indexesOf(new String("a"))); }
function testMultipleIndexes() { $this->assertEqual(ArrayList::fromArray("integer", array(2, 11)), $this->input->indexesOf("te")); }