public function make() { $backCwd = getcwd(); chdir($this->tempDir); $res = $this->runCommand('nmake'); chdir($backCwd); if (!$res) { throw new \Exception('nmake failed'); } }