Registers given function.
public registerFunc ( string $func ) : self | ||
$func | string | Function name |
return | self |
/** * Tests registering a non-existent function. */ public function testRegisterNonExistingFunction() { $this->setExpectedException('\\InvalidArgumentException'); $this->rpc->registerFunc('dummy'); }
/** * Tests registering a non-existent function. */ public function testRegisterNonExistingFunction() { $this->expectException(\InvalidArgumentException::class); $this->rpc->registerFunc('dummy'); }