registerMethod() публичный Метод

Method does not necessarily have to exist if __call or __callStatic method is defined.
public registerMethod ( string $class, string $method, boolean $useFullName = true ) : self
$class string Class name
$method string Function name
$useFullName boolean Register with class name
Результат self
Пример #1
0
 /**
  * Tests registering a method of a non-existent class.
  */
 public function testRegisterMethodInNonExistingClass()
 {
     $this->setExpectedException('\\InvalidArgumentException');
     $this->rpc->registerMethod('Dummy', 'dummy');
 }
Пример #2
0
 /**
  * Tests registering a method of a non-existent class.
  */
 public function testRegisterMethodInNonExistingClass()
 {
     $this->expectException(\InvalidArgumentException::class);
     $this->rpc->registerMethod('Dummy', 'dummy');
 }