Exemple #1
0
 public function testGetNamed()
 {
     $route = new Route(['name' => 'hello']);
     $dispatcher = new Dispatcher(new Request());
     $dispatcher->addRoute($route);
     $this->assertEquals($route, $dispatcher->getNamed('hello'));
 }