public function testRegisterNonExistingFunction() { $this->expectException(\InvalidArgumentException::class); $this->rpc->registerFunc('dummy'); }