Skip to content

Commit 8d9f5ca

Browse files
committed
Fix Laravel 7 test suite runner
1 parent 19faed7 commit 8d9f5ca

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

.github/workflows/run-tests-L7.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ jobs:
4040
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "symfony/console:>=4.3.4" "mockery/mockery:^1.3.2" --no-interaction --no-update
4141
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
4242
- name: Execute tests
43-
run: vendor/bin/phpunit
43+
run: vendor/bin/phpunit -c phpunit-laravel7.xml.dist

phpunit-laravel7.xml.dist

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php"
3+
backupGlobals="false"
4+
colors="true"
5+
processIsolation="false"
6+
stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
7+
<testsuites>
8+
<testsuite name="Eloquent Human Timestamps Test Suite">
9+
<directory>tests</directory>
10+
</testsuite>
11+
</testsuites>
12+
<php>
13+
<env name="CACHE_DRIVER" value="array"/>
14+
</php>
15+
</phpunit>

0 commit comments

Comments
 (0)