registerFunc() 공개 메소드

Registers given function.
public registerFunc ( string $func ) : self
$func string Function name
리턴 self
예제 #1
0
 /**
  * Tests registering a non-existent function.
  */
 public function testRegisterNonExistingFunction()
 {
     $this->setExpectedException('\\InvalidArgumentException');
     $this->rpc->registerFunc('dummy');
 }
예제 #2
0
파일: ServerTestCase.php 프로젝트: jyxo/php
 /**
  * Tests registering a non-existent function.
  */
 public function testRegisterNonExistingFunction()
 {
     $this->expectException(\InvalidArgumentException::class);
     $this->rpc->registerFunc('dummy');
 }