示例#1
0
 /**
  * Assertion helper
  *
  * @param  string[] $expected
  * @param  lang.XPClass $type
  * @return void
  * @throws unittest.AssertionFailedError
  */
 protected function assertDeclaresMethods($expected, $type)
 {
     $this->assertEquals($expected, array_map(function ($method) {
         return $method->toString();
     }, $type->getDeclaredMethods()));
 }