private function redirectStdout() { global $STDOUT; fclose(STDOUT); $STDOUT = fopen($this->stdoutFilePath, 'wb+'); }