public function testRouteFindingForEmptyUrl() { $_SERVER['REQUEST_METHOD'] = 'GET'; $routes = new \Nano\Routes(); $routes->add('get', '', 'index', 'index'); $urls = array('', '/', '//'); foreach ($urls as $url) { $route = $this->dispatcher->getRoute($routes, $url); self::assertInstanceOf('\\Nano\\Route\\Common', $route, 'for url: [' . $url . ']'); $this->assertEquals('index::index() when location matches []', $route->__toString()); } }