/** * 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'); }