Skip to content

Commit

Permalink
Allow PHPUnit 10
Browse files Browse the repository at this point in the history
  • Loading branch information
kubawerlos committed Apr 2, 2023
1 parent 9036690 commit 9336732
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"symfony/finder": "^3.4 || ^4.0 || ^5.0 || ^6.0"
},
"require-dev": {
"phpunit/phpunit": "^8.5.2 || ^9.0.1"
"phpunit/phpunit": "^8.5.2 || ^9.0.1 || ^10.0.19"
},
"autoload": {
"psr-4": {
Expand Down
18 changes: 8 additions & 10 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
xsi:noNamespaceSchemaLocation='./vendor/phpunit/phpunit/phpunit.xsd'
cacheResult='false'
colors='true'
forceCoversAnnotation='true'
verbose='true'
requireCoverageMetadata='true'
>

<php>
Expand All @@ -21,14 +20,13 @@
</testsuite>
</testsuites>

<logging>
<log type='coverage-text' target='php://stdout' showOnlySummary='true' />
</logging>

<filter>
<whitelist>
<coverage>
<include>
<directory>./src</directory>
</whitelist>
</filter>
</include>
<report>
<text outputFile='php://stdout' showOnlySummary='true'/>
</report>
</coverage>

</phpunit>
2 changes: 1 addition & 1 deletion tests/Command/CheckCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ protected function setUp(): void
public function testRunWithInvalidAutoloader(): void
{
$this->expectException(\InvalidArgumentException::class);
$this->expectErrorMessage('File "nowhere" does not exist.');
$this->expectExceptionMessage('File "nowhere" does not exist.');

$this->tester->run([
'path' => ['src'],
Expand Down

0 comments on commit 9336732

Please sign in to comment.