Skip to content

Commit dd02daa

Browse files
committed
Removed server spawn hack for Linux in HttpConnectorTest.
No longer necessary since Process v3.3.
1 parent d8cd138 commit dd02daa

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"require-dev": {
2121
"phpunit/phpunit": "^4.8",
2222
"mockery/mockery": "^0.9.4",
23-
"symfony/process": "^3"
23+
"symfony/process": "^3.3"
2424
},
2525
"suggest" : {
2626
"transformers/mapping": "Transforms array collections using Mappings."

test/Functional/Porter/Net/Http/HttpConnectorTest.php

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,7 @@ public function testErrorResponse()
7070
*/
7171
private function startServer($script)
7272
{
73-
$server = (
74-
new Process(sprintf(
75-
'%sphp -S %s %s.php',
76-
// Prevent forking on some Unix systems.
77-
file_exists('/bin/sh') ? 'exec ' : '',
78-
self::HOST,
79-
$script
80-
))
81-
)->setWorkingDirectory(self::$dir);
73+
$server = new Process(['php', '-S', self::HOST, "$script.php"], self::$dir);
8274
$server->start();
8375

8476
// Wait for server to spawn.

0 commit comments

Comments
 (0)