예제 #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
 protected function routing($config)
 {
     $request = new Sabel_Request_Object("index/index");
     $config->configure();
     $candidate = $config->getValidCandidate($request->getUri());
     Sabel_Context::getContext()->setCandidate($candidate);
 }