/** * Tests registering a method of a non-existent class. */ public function testRegisterMethodInNonExistingClass() { $this->setExpectedException('\\InvalidArgumentException'); $this->rpc->registerMethod('Dummy', 'dummy'); }
/** * Tests registering a method of a non-existent class. */ public function testRegisterMethodInNonExistingClass() { $this->expectException(\InvalidArgumentException::class); $this->rpc->registerMethod('Dummy', 'dummy'); }