Exemple #1
0
 function testDefaultNotFound()
 {
     $api = new Api();
     $req = new Request();
     $resp = new Response();
     $srvc = new Services();
     $api->defaultNotFound($req, $resp, $srvc);
     $this->assertEquals(404, $resp->getStatus());
     $this->assertEquals("text/html", $resp->getHeader("Content-Type"));
     $this->assertEquals("<b>Not Found</b>", $resp->getBody());
 }