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