Skip to content

Commit ad5b968

Browse files
committed
build: stop using process builder (sf4)
1 parent c567e10 commit ad5b968

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

src/BeSimple/SoapClient/Tests/AbstractWebServerTest.php

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@
1313
namespace BeSimple\SoapClient\Tests;
1414

1515
use Symfony\Component\Process\PhpExecutableFinder;
16-
use Symfony\Component\Process\ProcessBuilder;
16+
use Symfony\Component\Process\Process;
1717

1818
/**
1919
2020
*/
2121
abstract class AbstractWebServerTest extends \PHPUnit_Framework_TestCase
2222
{
2323
/**
24-
* @var ProcessBuilder
24+
* @var Process
2525
*/
2626
static protected $webserver;
2727
static protected $websererPortLength;
@@ -33,14 +33,17 @@ public static function setUpBeforeClass()
3333
}
3434

3535
$phpFinder = new PhpExecutableFinder();
36-
self::$webserver = ProcessBuilder::create(array(
37-
'exec', // used exec binary (https://github.com/symfony/symfony/issues/5759)
38-
$phpFinder->find(),
39-
'-S',
40-
sprintf('localhost:%d', WEBSERVER_PORT),
41-
'-t',
42-
__DIR__.DIRECTORY_SEPARATOR.'Fixtures',
43-
))->getProcess();
36+
37+
self::$webserver = new Process(
38+
[
39+
'exec', // used exec binary (https://github.com/symfony/symfony/issues/5759)
40+
$phpFinder->find(),
41+
'-S',
42+
sprintf('localhost:%d', WEBSERVER_PORT),
43+
'-t',
44+
__DIR__.DIRECTORY_SEPARATOR.'Fixtures',
45+
]
46+
);
4447

4548
self::$webserver->start();
4649
usleep(100000);

0 commit comments

Comments
 (0)