コード例 #1
0
ファイル: Object.php プロジェクト: reoring/sabel
 public function testUri()
 {
     $path = "foo/bar";
     $request = new Sabel_Request_Object("");
     $request->get($path);
     $this->assertEquals($path, $request->getUri());
 }
コード例 #2
0
ファイル: Redirector.php プロジェクト: reoring/sabel
 protected function routing($config)
 {
     $request = new Sabel_Request_Object("index/index");
     $config->configure();
     $candidate = $config->getValidCandidate($request->getUri());
     Sabel_Context::getContext()->setCandidate($candidate);
 }