/** * Test HTTP PATCH method detection */ public function testIsPatch() { $env = \Slim\Environment::mock(array('REQUEST_METHOD' => 'PATCH')); $req = new \Slim\Http\Request($env); $this->assertTrue($req->isPatch()); }