public function testUrls()
 {
     SimpleRouter::router()->reset();
     SimpleRouter::request()->setUri('/my/fancy/url/1');
     SimpleRouter::request()->setMethod('get');
     // Test array name
     SimpleRouter::get('/my/fancy/url/1', 'DummyController@start', ['as' => 'fancy1']);
     // Test method name
     SimpleRouter::get('/my/fancy/url/2', 'DummyController@start')->setName('fancy2');
     SimpleRouter::start();
     $this->assertEquals('/my/fancy/url/1/', SimpleRouter::getUrl('fancy1'));
     $this->assertEquals('/my/fancy/url/2/', SimpleRouter::getUrl('fancy2'));
 }
 protected function getUrl($name = null, $parameters = null, array $getParams = [])
 {
     return SimpleRouter::getUrl($name, $parameters, $getParams);
 }