diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5b09072..d7a821d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -33,7 +33,8 @@ jobs: - name: Run phpunit tests run: | mkdir -p build/logs - vendor/bin/phpunit --coverage-clover ./build/logs/clover.xml + PROCESS_FACTORY=host vendor/bin/phpunit + PROCESS_FACTORY=docker vendor/bin/phpunit --coverage-clover ./build/logs/clover.xml - name: Run phpcs run: composer cs diff --git a/phpunit.xml b/phpunit.xml index dbf5daa..eac0d7d 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -10,6 +10,6 @@ ./test/solutions - + diff --git a/test/Exercise/ThrowAnExpressionTest.php b/test/Exercise/ThrowAnExpressionTest.php index efbd979..161748d 100644 --- a/test/Exercise/ThrowAnExpressionTest.php +++ b/test/Exercise/ThrowAnExpressionTest.php @@ -34,7 +34,7 @@ public function testThrowingWrongException(): void self::assertInstanceOf(Success::class, $output->getResults()[1]); self::assertMatchesRegularExpression( - '/Fatal error: Uncaught Exception: Access denied!/', + '/Fatal error:\s+Uncaught Exception: Access denied!/', $output->getResults()[0]->getReason() );