10000 [BrowserKit] fixed test insulation on Mac · symfony/symfony@1cec45c · GitHub
[go: up one dir, main page]

Skip to content

Commit 1cec45c

Browse files
committed
[BrowserKit] fixed test insulation on Mac
1 parent 20a7044 commit 1cec45c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Symfony/Component/BrowserKit/Client.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,8 @@ public function request($method, $uri, array $parameters = array(), array $files
286286
*/
287287
protected function doRequestInProcess($request)
288288
{
289-
576D $process = new PhpProcess($this->getScript($request));
289+
// We set the TMPDIR because on Macs, the temp directory changes based on the user.
290+
$process = new PhpProcess($this->getScript($request), null, array('TMPDIR' => sys_get_temp_dir()));
290291
$process->run();
291292

292293
if (!$process->isSuccessful() || !preg_match('/^O\:\d+\:/', $process->getOutput())) {

0 commit comments

Comments
 (0)
0