public function setUp() { $this->phr = realpath(__DIR__ . '/../../../../../bin/phrozn.php'); // paths $base = realpath(dirname(__FILE__) . '/../../../../../') . '/'; $paths = array('app' => $base, 'bin' => $base . 'bin/', 'lib' => $base . 'library/', 'configs' => $base . 'configs/', 'skeleton' => $base . 'skeleton/'); // purge project directory $this->removeProjectDirectory(); $this->outputter = new Outputter($this); $runner = new Callback(); $data['paths'] = $paths; // inject paths $runner->setOutputter($this->outputter)->setConfig($data); $this->runner = $runner; // setup parser $this->parser = new Parser($paths); }