Exemplo n.º 1
0
 public function testGetActiveRoute()
 {
     $request = new TestRequest();
     $route = new TestRoute(array('url' => '/test_route'));
     //
     $myDispatcher = new TestDispatcher($request);
     $myDispatcher->addRoute($route);
     $cms = new CMS($myDispatcher);
     $cms->dispatch();
     $active = $cms->getActiveRoute();
     $this->assertEquals($route, $active);
 }