Skip to content

Commit

Permalink
Updated tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
izniburak committed Jan 23, 2022
1 parent ec19a9a commit 3641a96
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions tests/RouterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,20 +79,6 @@ public function testRequestMethods()
$this->router->run();
$this->assertEquals('get', ob_get_contents());

// Test POST
ob_clean();
$this->request->server->set('REQUEST_URI', '/post');
$this->request->server->set('REQUEST_METHOD', 'POST');
$this->router->run();
$this->assertEquals('post', ob_get_contents());

// Test PUT
ob_clean();
$this->request->server->set('REQUEST_URI', '/put');
$this->request->server->set('REQUEST_METHOD', 'PUT');
$this->router->run();
$this->assertEquals('put', ob_get_contents());

// Cleanup
ob_end_clean();
}
Expand Down

0 comments on commit 3641a96

Please sign in to comment.