public function testUri() { $path = "foo/bar"; $request = new Sabel_Request_Object(""); $request->get($path); $this->assertEquals($path, $request->getUri()); }
protected function routing($config) { $request = new Sabel_Request_Object("index/index"); $config->configure(); $candidate = $config->getValidCandidate($request->getUri()); Sabel_Context::getContext()->setCandidate($candidate); }