Exemplo n.º 1
0
 protected function getMatchingRoute()
 {
     $requestUri = $this->request->getUri();
     if ($requestUri === null) {
         return null;
     }
     foreach ($this->routes as $route) {
         if ($route->matches($requestUri)) {
             return $route;
         }
     }
 }
Exemplo n.º 2
0
 public function testGetUriWasNotFound()
 {
     $request = new Vmvc_Request(array(), array(), array());
     $uri = $request->getUri();
     $this->assertNull($uri);
 }