@test
public function shouldInheritEnvironmentVars() {
$snapshot = $_ENV;
$_ENV = $expected = array(
'foo' => 'bar',
);
$pb = new ProcessBuilder();
$pb
->add('foo')
->inheritEnvironmentVariables();
$proc = $pb
->getProcess();
$this
->assertNull($proc
->getEnv(), '->inheritEnvironmentVariables() copies $_ENV');
$_ENV = $snapshot;
}