Example #1
0
 public function setUp()
 {
     $this->wordpress = wordpress();
     $this->wordpress->reset();
     $this->callback = Router::callback("TestController", "returnTrue");
     $this->url = Router::urlRouting(array(array("GET", "/test1/", "TestController#returnTrue")));
     $this->url->route->listen();
 }
Example #2
0
 /**
  * Configures the default router object.
  */
 protected function setupUrlRouting()
 {
     $rewriter = new Rewriter();
     $rewriter->initialize();
     $router = Router::urlRouting();
     $this->setConfig("runtime.rewriter_reference", $rewriter);
     $this->setConfig("runtime.router_reference", $router);
 }