Example #1
0
 public function setUp()
 {
     $this->root = Router::getCurrent();
     //根路由
     $this->root->expose(TEST_ROOT . '/public', '*.php');
     $this->root->expose(TEST_ROOT . '/public', '*/*.php');
 }
Example #2
0
 public function expose($directory, $wildcard = '*.php')
 {
     $router = \Cute\Web\Router::getCurrent();
     $router->expose($directory, $wildcard);
     return $this;
 }