Skip to content

Commit

Permalink
Merge 4178e0c into d8cd138
Browse files Browse the repository at this point in the history
  • Loading branch information
Bilge committed May 31, 2017
2 parents d8cd138 + 4178e0c commit 828502c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -20,7 +20,7 @@
"require-dev": {
"phpunit/phpunit": "^4.8",
"mockery/mockery": "^0.9.4",
"symfony/process": "^3"
"symfony/process": "^3.3"
},
"suggest" : {
"transformers/mapping": "Transforms array collections using Mappings."
Expand Down
10 changes: 1 addition & 9 deletions test/Functional/Porter/Net/Http/HttpConnectorTest.php
Expand Up @@ -70,15 +70,7 @@ public function testErrorResponse()
*/
private function startServer($script)
{
$server = (
new Process(sprintf(
'%sphp -S %s %s.php',
// Prevent forking on some Unix systems.
file_exists('/bin/sh') ? 'exec ' : '',
self::HOST,
$script
))
)->setWorkingDirectory(self::$dir);
$server = new Process(['php', '-S', self::HOST, "$script.php"], self::$dir);
$server->start();

// Wait for server to spawn.
Expand Down

0 comments on commit 828502c

Please sign in to comment.