public function testMethod() { $app = new \OnePHP\App(); $func = function () { return true; }; //default HTTP Requests in OneFramework $app->get('/get', $func); $app->post('/post', $func); $app->put('/put', $func); $app->delete('/delete', $func); $routes = $app->getRoutes(); //check if routes are found $this->assertEquals('/get', $routes['GET'][0]->route); $this->assertEquals('/post', $routes['POST'][0]->route); $this->assertEquals('/put', $routes['PUT'][0]->route); $this->assertEquals('/delete', $routes['DELETE'][0]->route); }