Skip to content
This repository was archived by the owner on Mar 6, 2022. It is now read-only.

Commit 58c9a12

Browse files
authored
Maestro updates to PHPUnit 9.0 (#28)
1 parent 8f28d9e commit 58c9a12

File tree

6 files changed

+22
-24
lines changed

6 files changed

+22
-24
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@
66
/.php_cs.cache
77
/stubs
88
/.phpunit.result.cache
9+
.phpunit.result.cache

composer.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@
2020
"friendsofphp/php-cs-fixer": "^2.17",
2121
"phpactor/test-utils": "^1.0",
2222
"phpstan/phpstan": "~0.12.0",
23-
"phpunit/phpunit": "~8.0",
24-
"symfony/var-dumper": "^5.0"
23+
"phpunit/phpunit": "^9.0",
24+
"symfony/var-dumper": "^5.0",
25+
"phpspec/prophecy-phpunit": "^2.0"
2526
},
2627
"extra": {
2728
"branch-alias": {
@@ -47,4 +48,4 @@
4748
"vendor/bin/phpunit"
4849
]
4950
}
50-
}
51+
}

phpunit.xml.dist

Lines changed: 14 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,17 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
32
<!-- http://www.phpunit.de/manual/current/en/appendixes.configuration.html -->
4-
<phpunit
5-
colors="true"
6-
bootstrap="tests/autoload.php"
7-
>
8-
9-
<testsuites>
10-
<testsuite name="Type Inference">
11-
<directory>./tests</directory>
12-
</testsuite>
13-
</testsuites>
14-
15-
<filter>
16-
<whitelist addUncoveredFilesFromWhitelist="true">
17-
<directory>.</directory>
18-
<exclude>
19-
<directory>vendor/</directory>
20-
</exclude>
21-
</whitelist>
22-
</filter>
23-
3+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" colors="true" bootstrap="tests/autoload.php" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
4+
<coverage includeUncoveredFiles="true">
5+
<include>
6+
<directory>.</directory>
7+
</include>
8+
<exclude>
9+
<directory>vendor/</directory>
10+
</exclude>
11+
</coverage>
12+
<testsuites>
13+
<testsuite name="Type Inference">
14+
<directory>./tests</directory>
15+
</testsuite>
16+
</testsuites>
2417
</phpunit>

tests/Unit/Domain/Builder/MethodBuilderTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
class MethodBuilderTest extends TestCase
1111
{
12+
use \Prophecy\PhpUnit\ProphecyTrait;
1213
public function testExceptionOnAddNonParameterBuilder()
1314
{
1415
$this->expectException(InvalidBuilderException::class);

tests/Unit/Domain/TemplatePathResolver/FilterPhpVersionDirectoryIteratorTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
class FilterPhpVersionDirectoryIteratorTest extends TestCase
1212
{
13+
use \Prophecy\PhpUnit\ProphecyTrait;
1314
/**
1415
* @dataProvider provideDirectoriesToFilter
1516
*/

tests/Unit/SourceBuilderTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
class SourceBuilderTest extends TestCase
1414
{
15+
use \Prophecy\PhpUnit\ProphecyTrait;
1516
/**
1617
* @var Updater
1718
*/

0 commit comments

Comments
 (0)