public function testMatchesWithQuestionMarkSeperator() { $result = $this->object->matches('/indexC/indexA?test=testvalue'); $this->assertTrue($result); }
/** * * @param Vmvc_Route $defaultRoute * @param string $defaultUri */ public function setDefaultRoute(Vmvc_Route $defaultRoute, $defaultUri) { if (!$defaultRoute->matches($defaultUri)) { throw new Vmvc_Exception('default route is not matching the ' . 'default uri.'); } $this->defaultRoute = $defaultRoute; $this->defaultUri = $defaultUri; }