public function testMissingPositionalArgument()
 {
     $Request = $this->createRequest('baz', [], 123);
     $Server = new Server(new MockSubjectClass());
     $Response = $Server->handleRequest($Request);
     $this->assertValidErrorResponse($Response, ErrorResponse::INVALID_PARAMS);
 }
예제 #2
0
 public function testThatPrivateMethodsAreNotAvailable()
 {
     $Request = $this->createRequest('quuux', [], 123);
     $Server = new Server(MockSubjectClass::class);
     $Response = $Server->handleRequest($Request);
     $this->assertValidErrorResponse($Response, ErrorResponse::METHOD_NOT_FOUND);
 }