public function testGetRoute() { $this->requestMock->expects($this->any())->method('getUri')->will($this->returnValue(null)); $options = array('lang' => 'en', 'controller' => 'index', 'action' => 'index'); $defaultRoute = new Vmvc_Route('/^[a-z]{2}$:lang/:controller/:action/', $options); $this->object->addRoute($defaultRoute); $this->object->setDefaultRoute($defaultRoute, '/en/index/index/'); $route = $this->object->getRoute(); $this->assertSame($defaultRoute, $route); }