File tree 8 files changed +19
-13
lines changed
8 files changed +19
-13
lines changed Original file line number Diff line number Diff line change @@ -4,10 +4,10 @@ notifications:
4
4
language : php
5
5
6
6
php :
7
- - 7.1
8
7
- 7.2
9
8
- 7.3
10
9
- 7.4
10
+ - 8.0
11
11
12
12
env :
13
13
matrix :
@@ -22,12 +22,12 @@ cache:
22
22
- vendor
23
23
24
24
install :
25
- - composer self-update --1
26
25
- composer validate
27
26
- composer --no-interaction update $DEPENDENCIES
28
27
29
28
script :
30
- - composer test -- --coverage-clover=build/logs/clover.xml --coverage-xml=build/coverage/coverage- xml
31
- --log-junit=build/coverage/phpunit. junit.xml
29
+ - XDEBUG_MODE=coverage composer test -- --coverage-clover=build/logs/clover.xml
30
+ --coverage-xml=build/coverage/coverage-xml -- log-junit=build/coverage/junit.xml
32
31
- travis_retry bash <(curl -s https://codecov.io/bash) || true
33
- - composer mutation -- --min-msi=100 --threads=$(nproc) --show-mutations --coverage=build/coverage
32
+ - ln -sfv ../build test
33
+ - composer mutation -- --min-msi=99 --threads=$(nproc) --show-mutations --coverage=build/coverage
Original file line number Diff line number Diff line change 9
9
],
10
10
"license" : " LGPL-3.0" ,
11
11
"require" : {
12
- "php" : " ^7.1 " ,
12
+ "php" : " ^7.2|^8 " ,
13
13
"amphp/amp" : " ^2" ,
14
14
"async/throttle" : " ^3" ,
15
15
"psr/cache" : " ^1" ,
20
20
},
21
21
"require-dev" : {
22
22
"amphp/phpunit-util" : " ^1.1" ,
23
- "infection/infection" : " ^0.13 " ,
23
+ "infection/infection" : " >=0.15,<1 " ,
24
24
"mockery/mockery" : " ^1.3" ,
25
- "phpunit/phpunit" : " ^7.1.3 "
25
+ "phpunit/phpunit" : " ^8.5|^9 "
26
26
},
27
27
"suggest" : {
28
28
"connectors/http" : " Provides an HTTP connector for Porter providers." ,
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ final class ImportConnectorTest extends TestCase
32
32
/** @var AsyncDataSource|MockInterface */
33
33
private $ asyncSource ;
34
34
35
- protected function setUp ()
35
+ protected function setUp (): void
36
36
{
37
37
parent ::setUp ();
38
38
Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ public function testImportIncompatibleProviderAsync(): \Generator
123
123
$ this ->registerProvider (\Mockery::mock (Provider::class), $ providerName = 'foo ' );
124
124
125
125
$ this ->expectException (IncompatibleProviderException::class);
126
- $ this ->expectExceptionMessageRegExp ('[\bAsyncProvider\b] ' );
126
+ $ this ->expectExceptionMessageMatches ('[\bAsyncProvider\b] ' );
127
127
yield $ this ->porter ->importAsync ($ this ->specification ->setProviderName ($ providerName ));
128
128
}
129
129
Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ public function testImportIncompatibleProvider(): void
168
168
$ this ->registerProvider (\Mockery::mock (AsyncProvider::class), $ providerName = 'foo ' );
169
169
170
170
$ this ->expectException (IncompatibleProviderException::class);
171
- $ this ->expectExceptionMessageRegExp ('[\bProvider\b] ' );
171
+ $ this ->expectExceptionMessageMatches ('[\bProvider\b] ' );
172
172
$ this ->porter ->import ($ this ->specification ->setProviderName ($ providerName ));
173
173
}
174
174
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ public function testNonArrayYield(): void
56
56
)->makePartial ();
57
57
58
58
$ this ->expectException (\TypeError::class);
59
- $ this ->expectExceptionMessage ( ' must be of the type array ' );
59
+ $ this ->expectExceptionMessageMatches ( ' [ must be of( the)? type array] ' );
60
60
$ collection ->current ();
61
61
}
62
62
}
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ final class ImportConnectorTest extends TestCase
25
25
/** @var DataSource|MockInterface */
26
26
private $ source ;
27
27
28
- protected function setUp ()
28
+ protected function setUp (): void
29
29
{
30
30
parent ::setUp ();
31
31
Original file line number Diff line number Diff line change 4
4
<testsuite name =" all" >
5
5
<directory >.</directory >
6
6
</testsuite >
7
+ <coverage processUncoveredFiles =" true" >
8
+ <include >
9
+ <directory >../src</directory >
10
+ </include >
11
+ </coverage >
12
+ <!-- TODO: Remove obsolete block when support for PHPUnit 8 dropped. -->
7
13
<filter >
8
14
<whitelist processUncoveredFilesFromWhitelist =" true" >
9
15
<directory >../src</directory >
You can’t perform that action at this time.
0 commit comments