public function setUp() { $this->root = Router::getCurrent(); //根路由 $this->root->mount(TEST_ROOT . '/public', '*.php'); $this->root->mount(TEST_ROOT . '/public', '*/*.php'); }
public function mount($directory, $wildcard = '*.php') { $router = Router::getCurrent(); $router->mount($directory, $wildcard); return $this; }
function mount($r, $VC = '*.php') { $fB = Router::getCurrent(); $fB->mount($r, $VC); return $this; }