Ejemplo n.º 1
0
 public function testRouteConfirmWillHandle()
 {
     $router = new Nether\Avenue\Router(static::$RequestData['Test']);
     $router->AddRoute('(@)//(test)', 'Nether\\Avenue\\LocalTestRouteAckHandle::Test');
     $route = $router->GetRoute();
     (new Verify('found a route to match.', $route instanceof Nether\Avenue\RouteHandler))->true();
     $router = new Nether\Avenue\Router(static::$RequestData['Index']);
     $router->AddRoute('(@)//(test)', 'Nether\\Avenue\\LocalTestRouteAckHandle::Test');
     $route = $router->GetRoute();
     (new Verify('did not find a route to match.', $route instanceof Nether\Avenue\RouteHandler))->false();
     return;
 }