File tree 3 files changed +14
-21
lines changed
3 files changed +14
-21
lines changed Original file line number Diff line number Diff line change @@ -64,12 +64,11 @@ jobs:
64
64
- name : Install latest dependencies
65
65
run : composer update ${{ env.COMPOSER_FLAGS }}
66
66
67
- # Provides flexibilty for using either simple-phpunit or phpunit
68
- - name : Determine PHPUnit binary
69
- run : |
70
- name=$([ -f vendor/bin/simple-phpunit ] && echo simple-phpunit || echo phpunit)
71
- echo "BIN_PHPUNIT=vendor/bin/$name" >> $GITHUB_ENV
72
- shell : bash
73
-
74
67
- name : Run tests
75
- run : ${{ env.BIN_PHPUNIT }} --verbose
68
+ if : ${{ !matrix.experimental }}
69
+ run : vendor/bin/phpunit
70
+
71
+ # Show deprecations on PHP 8.4
72
+ - name : Run tests (experimental)
73
+ if : ${{ matrix.experimental }}
74
+ run : vendor/bin/phpunit --display-deprecations
Original file line number Diff line number Diff line change 23
23
"composer/pcre" : " ^1 || ^2 || ^3"
24
24
},
25
25
"require-dev" : {
26
- "symfony/phpunit-bridge" : " ^6.0" ,
27
26
"phpstan/phpstan" : " ^1.0" ,
28
- "phpstan/phpstan-strict-rules" : " ^1.1"
27
+ "phpstan/phpstan-strict-rules" : " ^1.1" ,
28
+ "phpunit/phpunit" : " ^8.5 || ^9.6 || ^10.5"
29
29
},
30
30
"autoload" : {
31
31
"psr-4" : {
38
38
}
39
39
},
40
40
"scripts" : {
41
- "test" : " @php vendor/bin/simple- phpunit" ,
41
+ "test" : " @php vendor/bin/phpunit" ,
42
42
"phpstan" : " @php vendor/bin/phpstan analyse"
43
43
}
44
44
}
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
- <phpunit backupGlobals =" false"
3
- backupStaticAttributes =" false"
4
- colors =" true"
5
- convertErrorsToExceptions =" true"
6
- convertNoticesToExceptions =" true"
7
- convertWarningsToExceptions =" true"
8
- processIsolation =" false"
9
- stopOnFailure =" false"
10
- bootstrap =" vendor/autoload.php"
11
- >
2
+ <phpunit
3
+ colors =" true"
4
+ bootstrap =" vendor/autoload.php"
5
+ >
12
6
<testsuites >
13
7
<testsuite name =" XdebugHandler Test Suite" >
14
8
<directory >tests</directory >
You can’t perform that action at this time.
0 commit comments