Beispiel #1
0
 function testMethodOverride()
 {
     $req = new Request();
     $req->mock(array("REQUEST_METHOD" => "POST", "HTTP_X_HTTP_METHOD_OVERRIDE" => "PUT"));
     $this->assertEquals("PUT", $req->getMethod());
     $this->assertEquals("POST", $req->getOriginalMethod());
 }