Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ProcessBuilderTest: Don't depend on
export
shell builtin
Shells other than Bash may not have an `export` builtin command (in particular it doesn't exist on Windows). Shells are icky anyway. Let's make our own in one line of PHP. I'm doing this as the first patch towards making PHPUnit pass on Windows, because trying to run a command that doesn't exist triggers a really unpleasant bug in amphp/process 1.x on Windows, where it hangs forever: amphp/process#71 (I had to move `$process->getStdout()` before `$process->join()`, otherwise that would also hang forever. No idea why.)
- Loading branch information