/** * Setup our test * (runs before each test) * * @access protected * @return void */ protected function setUp() { // Create a new klein app, // since we need one pretty much everywhere $this->router = new Router(new App()); $this->var_dir = App::i()->var_dir(); if (!file_exists($this->var_dir)) { mkdir($this->var_dir, 0777); } }