File tree Expand file tree Collapse file tree
src/BeSimple/SoapClient/Tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313namespace BeSimple \SoapClient \Tests ;
1414
1515use Symfony \Component \Process \PhpExecutableFinder ;
16- use Symfony \Component \Process \ProcessBuilder ;
16+ use Symfony \Component \Process \Process ;
1717
1818/**
1919 * @author francis.besset@gmail.com <francis.besset@gmail.com>
2020 */
2121abstract 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,16 @@ 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+ $ phpFinder ->find (),
40+ '-S ' ,
41+ sprintf ('localhost:%d ' , WEBSERVER_PORT ),
42+ '-t ' ,
43+ __DIR__ .DIRECTORY_SEPARATOR .'Fixtures ' ,
44+ ]
45+ );
4446
4547 self ::$ webserver ->start ();
4648 usleep (100000 );
You can’t perform that action at this time.
0 commit comments