registerFunc() public method

Registers given function.
public registerFunc ( string $func ) : self
$func string Function name
return self
コード例 #1
0
ファイル: ServerTestCase.php プロジェクト: honzap/php
 /**
  * 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');
 }