Skip to content

Commit 78f49b1

Browse files
committed
Update ParallelDriver.php
1 parent 3595c14 commit 78f49b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ParallelDriver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ class ParallelDriver
66
{
77
public static function runningInParallel(): bool
88
{
9-
return isset($_ENV['TEST_TOKEN']);
9+
return isset($_SERVER['TEST_TOKEN']) || isset($_ENV['TEST_TOKEN']);
1010
}
1111

1212
public static function parallelDriverPort(): int
1313
{
14-
return 9515 + (int) $_ENV['TEST_TOKEN'];
14+
return 9515 + (int) ($_SERVER['TEST_TOKEN'] ?? $_ENV['TEST_TOKEN']);
1515
}
1616

1717
public static function hasExplicitPort(array $arguments): bool

0 commit comments

Comments
 (0)