Commit 3641d78b authored by Igor Wiedler's avatar Igor Wiedler

use map route syntax in WebTestCase

parent 8f5563ae
......@@ -23,10 +23,11 @@ class WebTestCaseTest extends WebTestCase
{
public function createApp()
{
$app = new Framework();
$app->get('/hello', function() {
return 'world';
});
$app = new Framework(array(
'/hello' => function() {
return 'world';
},
));
return $app;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment