File tree Expand file tree Collapse file tree 8 files changed +20
-14
lines changed Expand file tree Collapse file tree 8 files changed +20
-14
lines changed Original file line number Diff line number Diff line change @@ -4,10 +4,10 @@ notifications:
44language : php
55
66php :
7- - 7.1
87 - 7.2
98 - 7.3
109 - 7.4
10+ - 8.0
1111
1212env :
1313 matrix :
@@ -22,12 +22,12 @@ cache:
2222 - vendor
2323
2424install :
25- - composer self-update --1
2625 - composer validate
2726 - composer --no-interaction update $DEPENDENCIES
2827
2928script :
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
3231 - 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 99 ],
1010 "license" : " LGPL-3.0" ,
1111 "require" : {
12- "php" : " ^7.1 " ,
12+ "php" : " ^7.2|^8 " ,
1313 "amphp/amp" : " ^2" ,
1414 "async/throttle" : " ^3" ,
1515 "psr/cache" : " ^1" ,
2020 },
2121 "require-dev" : {
2222 "amphp/phpunit-util" : " ^1.1" ,
23- "infection/infection" : " ^0.13 " ,
24- "mockery/mockery" : " ^1.3 " ,
25- "phpunit/phpunit" : " ^7.1.3 "
23+ "infection/infection" : " >=0.15,<1 " ,
24+ "mockery/mockery" : " ^1.4.2 " ,
25+ "phpunit/phpunit" : " ^8.5|^9 "
2626 },
2727 "suggest" : {
2828 "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
3232 /** @var AsyncDataSource|MockInterface */
3333 private $ asyncSource ;
3434
35- protected function setUp ()
35+ protected function setUp (): void
3636 {
3737 parent ::setUp ();
3838
Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ public function testImportIncompatibleProviderAsync(): \Generator
123123 $ this ->registerProvider (\Mockery::mock (Provider::class), $ providerName = 'foo ' );
124124
125125 $ this ->expectException (IncompatibleProviderException::class);
126- $ this ->expectExceptionMessageRegExp ('[\bAsyncProvider\b] ' );
126+ $ this ->expectExceptionMessageMatches ('[\bAsyncProvider\b] ' );
127127 yield $ this ->porter ->importAsync ($ this ->specification ->setProviderName ($ providerName ));
128128 }
129129
Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ public function testImportIncompatibleProvider(): void
168168 $ this ->registerProvider (\Mockery::mock (AsyncProvider::class), $ providerName = 'foo ' );
169169
170170 $ this ->expectException (IncompatibleProviderException::class);
171- $ this ->expectExceptionMessageRegExp ('[\bProvider\b] ' );
171+ $ this ->expectExceptionMessageMatches ('[\bProvider\b] ' );
172172 $ this ->porter ->import ($ this ->specification ->setProviderName ($ providerName ));
173173 }
174174
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ public function testNonArrayYield(): void
5656 )->makePartial ();
5757
5858 $ this ->expectException (\TypeError::class);
59- $ this ->expectExceptionMessage ( ' must be of the type array ' );
59+ $ this ->expectExceptionMessageMatches ( ' [ must be of( the)? type array] ' );
6060 $ collection ->current ();
6161 }
6262}
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ final class ImportConnectorTest extends TestCase
2525 /** @var DataSource|MockInterface */
2626 private $ source ;
2727
28- protected function setUp ()
28+ protected function setUp (): void
2929 {
3030 parent ::setUp ();
3131
Original file line number Diff line number Diff line change 44 <testsuite name =" all" >
55 <directory >.</directory >
66 </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. -->
713 <filter >
814 <whitelist processUncoveredFilesFromWhitelist =" true" >
915 <directory >../src</directory >
You can’t perform that action at this time.
0 commit comments