Skip to content

Commit 75ef338

Browse files
committed
Run tests with both host + docker
1 parent 1dc4d4a commit 75ef338

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.github/workflows/build.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ jobs:
3333
- name: Run phpunit tests
3434
run: |
3535
mkdir -p build/logs
36-
vendor/bin/phpunit --coverage-clover ./build/logs/clover.xml
36+
PROCESS_FACTORY=host vendor/bin/phpunit
37+
PROCESS_FACTORY=docker vendor/bin/phpunit --coverage-clover ./build/logs/clover.xml
3738
- name: Run phpcs
3839
run: composer cs
3940

phpunit.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
<exclude>./test/solutions</exclude>
1111
</testsuite>
1212
<php>
13-
<env name="process_factory" value="docker" force="true" />
13+
<env name="PROCESS_FACTORY" value="docker" />
1414
</php>
1515
</phpunit>

test/Exercise/ThrowAnExpressionTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function testThrowingWrongException(): void
3434
self::assertInstanceOf(Success::class, $output->getResults()[1]);
3535

3636
self::assertMatchesRegularExpression(
37-
'/Fatal error: Uncaught Exception: Access denied!/',
37+
'/Fatal error:\s+Uncaught Exception: Access denied!/',
3838
$output->getResults()[0]->getReason()
3939
);
4040

0 commit comments

Comments
 (0)