コード例 #1
0
ファイル: TypeUtil.php プロジェクト: aeberh/php-movico
 public static function isImplementation($class, $interface)
 {
     return ArrayList::fromArray("string", class_implements($class))->contains($interface);
 }
コード例 #2
0
 function testIndexFound()
 {
     $expected = ArrayList::fromArray("integer", array(0, 2));
     $this->assertEqual($expected, $this->list->indexesOf(new String("a")));
 }
コード例 #3
0
 function testMultipleIndexes()
 {
     $this->assertEqual(ArrayList::fromArray("integer", array(2, 11)), $this->input->indexesOf("te"));
 }