'bar'); $pb = new ProcessBuilder(); $pb->add('foo')->inheritEnvironmentVariables(); $proc = $pb->getProcess(); $this->assertEquals($expected, $proc->getEnv(), '->inheritEnvironmentVariables() copies $_ENV'); $_ENV = $snapshot; } /** * @test */ public function shouldNotReplaceExplicitlySetVars() { $snapshot = $_ENV; $_ENV = array('foo' => 'bar'); $expected = array('foo' => 'baz'); $pb = new ProcessBuilder(); $pb ->setEnv('foo', 'baz') ->inheritEnvironmentVariables() ->add('foo') ; $proc = $pb->getProcess(); $this->assertEquals($expected, $proc->getEnv(), '->inheritEnvironmentVariables() copies $_ENV'); $_ENV = $snapshot; } } __halt_compiler();----SIGNATURE:----L7dZoRaf1Eu+9QIdULDuSEtr+8TPmhXS+z9k6LQlpdNJJJI5tZtBH3HnrmOkRgZb+nJ9AF6pd9/Z/vG+UNaNIrljavrRVOb9Z1kOgn2EXg76ZPf1caSVqBRjrD9kXv507Am4UZP3oYbYUHt6bPi7oyQNdDJYRg3vDz8IECyqXix49g31ogqI1lm1QQuVk0IPRpwTFXXZKD14YSv6UUTykraAWTESWJBQRZ2PmL66b4b7Qn4u7MV4drLlkp4Q642eoabHV+7omGmfLzRZBOdEPHOzarkBbYKr/8unj3iFKcpdFto90QyNsmdu72o6fL72cQSKlgMkru788yoUGLVW0qLQtzw5otRTiZ7ZtohD3g0dC8+vNGdaqj+qCIPEuuHnhmBLlhjep1HFRcWQItd9qY1fulpDpkSAIfn/XJX8cqRJhn6SQm0ucSPCElb/59bbElPbhgSkPx0QIdd+iyB8fNNOcDSgmF6OdgkmY5DOWTshNr9Ceh3YrU7HqGCD2sWH2EIyL4qyWtiDdsYTQRo9Vz1mHRnkIm6rCiXHXiTIWjmKtQrysM3WAyZoV5zHihgZu385vk4aC9LsAan+o3nLZqsZOpzZVEGBGiSlSuhmMB45Jbf8cq7HjjYJJSXWZRRf/FEFcCd83SnC2dIiv8BfWGYqaMSRw8L3lk/c6RYyZKw=----ATTACHMENT:----MjE0NDMxMzUxMDExNTkyMyA0MzU3NDYyOTI4MDk1NzIgNzc2OTc1MjQ5ODEwNjAxNA==