File tree Expand file tree Collapse file tree 4 files changed +51
-14
lines changed Expand file tree Collapse file tree 4 files changed +51
-14
lines changed Original file line number Diff line number Diff line change 28
28
- run : composer install
29
29
- run : docker run -d --name mysql --net=host -e MYSQL_RANDOM_ROOT_PASSWORD=yes -e MYSQL_DATABASE=test -e MYSQL_USER=test -e MYSQL_PASSWORD=test mysql:5
30
30
- run : bash tests/wait-for-mysql.sh
31
- - run : MYSQL_USER=test MYSQL_PASSWORD=test vendor/bin/phpunit
31
+ - run : MYSQL_USER=test MYSQL_PASSWORD=test vendor/bin/phpunit --coverage-text
32
+ if : ${{ matrix.php >= 7.3 }}
33
+ - run : MYSQL_USER=test MYSQL_PASSWORD=test vendor/bin/phpunit --coverage-text -c phpunit.xml.legacy
34
+ if : ${{ matrix.php < 7.3 }}
32
35
33
36
PHPUnit-hhvm :
34
37
name : PHPUnit (HHVM)
Original file line number Diff line number Diff line change 14
14
},
15
15
"require-dev" : {
16
16
"clue/block-react" : " ^1.2" ,
17
- "phpunit/phpunit" : " ^9.3 || ^6.0 || ^5.0 || ^4.8.35"
17
+ "phpunit/phpunit" : " ^9.3 || ^5.7 || ^4.8.35"
18
18
},
19
19
"autoload" : {
20
20
"psr-4" : {
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
2
3
- <phpunit backupGlobals =" false"
3
+ <!-- PHPUnit configuration file with new format for PHPUnit 9.3+ -->
4
+ <phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
5
+ backupGlobals =" false"
4
6
backupStaticAttributes =" false"
5
- colors =" true"
7
+ bootstrap =" vendor/autoload.php"
8
+ cacheResult =" false"
6
9
convertErrorsToExceptions =" true"
7
10
convertNoticesToExceptions =" true"
8
11
convertWarningsToExceptions =" true"
12
+ colors =" true"
9
13
processIsolation =" false"
10
14
stopOnFailure =" false"
11
- bootstrap =" vendor/autoload.php"
12
- >
15
+ xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/9.3/phpunit.xsd" >
13
16
<testsuites >
14
17
<testsuite name =" React.MySQL Test Suite" >
15
18
<directory >./tests/</directory >
16
19
</testsuite >
17
20
</testsuites >
18
-
19
- <filter >
20
- <whitelist >
21
+ <coverage >
22
+ <include >
21
23
<directory >./src/</directory >
22
- </whitelist >
23
- </filter >
24
+ </include >
25
+ </coverage >
24
26
<php >
25
27
<env name =" DB_HOST" value =" 127.0.0.1" />
26
28
<env name =" DB_PORT" value =" 3306" />
27
- <env name =" DB_USER" value =" test" />
28
- <env name =" DB_PASSWD" value =" test" />
29
- <env name =" DB_DBNAME" value =" test" />
29
+ <env name =" DB_USER" value =" test" />
30
+ <env name =" DB_PASSWD" value =" test" />
31
+ <env name =" DB_DBNAME" value =" test" />
30
32
</php >
31
33
</phpunit >
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+
3
+ <!-- PHPUnit configuration file with old format for PHPUnit 9.2 or older -->
4
+ <phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
5
+ backupGlobals =" false"
6
+ backupStaticAttributes =" false"
7
+ bootstrap =" vendor/autoload.php"
8
+ colors =" true"
9
+ convertErrorsToExceptions =" true"
10
+ convertNoticesToExceptions =" true"
11
+ convertWarningsToExceptions =" true"
12
+ processIsolation =" false"
13
+ stopOnFailure =" false"
14
+ xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/4.8/phpunit.xsd" >
15
+ <testsuites >
16
+ <testsuite name =" React.MySQL Test Suite" >
17
+ <directory >./tests/</directory >
18
+ </testsuite >
19
+ </testsuites >
20
+ <filter >
21
+ <whitelist >
22
+ <directory >./src/</directory >
23
+ </whitelist >
24
+ </filter >
25
+ <php >
26
+ <env name =" DB_HOST" value =" 127.0.0.1" />
27
+ <env name =" DB_PORT" value =" 3306" />
28
+ <env name =" DB_USER" value =" test" />
29
+ <env name =" DB_PASSWD" value =" test" />
30
+ <env name =" DB_DBNAME" value =" test" />
31
+ </php >
32
+ </phpunit >
You can’t perform that action at this time.
0 commit comments