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