Skip to content

Commit

Permalink
Use port from host var in test bootstrap (#34)
Browse files Browse the repository at this point in the history
* Use port from host var

* CR fix
  • Loading branch information
uuf6429 authored Nov 2, 2024
1 parent ea2ee82 commit eba0ed4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@

use Symfony\Component\Process\Process;

$minkTestServerPort = isset($_SERVER['WEB_FIXTURES_HOST'])
? parse_url($_SERVER['WEB_FIXTURES_HOST'], PHP_URL_PORT)
: '8002';

$minkTestServer = new Process([
PHP_BINARY,
'-S',
'0.0.0.0:8002',
'0.0.0.0:' . $minkTestServerPort,
'-t',
__DIR__ . '/../vendor/mink/driver-testsuite/web-fixtures'
]);
Expand Down

0 comments on commit eba0ed4

Please sign in to comment.