public function testRouteFindingForEmptyUrl() { $routes = new Nano_Routes(); $routes->add('', 'index', 'index'); $route1 = $this->dispatcher->getRoute($routes, '/'); $route2 = $this->dispatcher->getRoute($routes, ''); $this->assertType('Nano_Route', $route1); $this->assertType('Nano_Route', $route2); $this->assertEquals('index::index() when /^$/', $route1->__toString()); $this->assertEquals('index::index() when /^$/', $route2->__toString()); }