public function testRegisterNonExistingMethod() { require_once $this->getFilePath('TestMath.php'); $this->expectException(\InvalidArgumentException::class); $this->rpc->registerMethod('TestMath', 'dummy'); }