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

Commit d7d3ea3

Browse files
authored
Maestro updates to PHPUnit 9.0 (#7)
1 parent 65b12e1 commit d7d3ea3

4 files changed

Lines changed: 19 additions & 24 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@
55
/composer.lock
66
/.php_cs.cache
77
/stubs
8+
.phpunit.result.cache

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
"ergebnis/composer-normalize": "^2.0",
2020
"friendsofphp/php-cs-fixer": "^2.17",
2121
"phpstan/phpstan": "~0.12.0",
22-
"phpunit/phpunit": "~7.0"
22+
"phpunit/phpunit": "^9.0",
23+
"phpspec/prophecy-phpunit": "^2.0"
2324
},
2425
"extra": {
2526
"branch-alias": {
@@ -46,4 +47,4 @@
4647
"vendor/bin/phpunit"
4748
]
4849
}
49-
}
50+
}

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="vendor/autoload.php"
7-
>
8-
9-
<testsuites>
10-
<testsuite name="Phactor Completion Extension">
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="vendor/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="Phactor Completion Extension">
14+
<directory>./tests</directory>
15+
</testsuite>
16+
</testsuites>
2417
</phpunit>

tests/Unit/CompletionExtensionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class CompletionExtensionTest extends TestCase
3939
*/
4040
private $signatureHelper1;
4141

42-
public function setUp()
42+
public function setUp(): void
4343
{
4444
$this->completor1 = $this->prophesize(Completor::class);
4545
$this->signatureHelper1 = $this->prophesize(SignatureHelper::class);

0 commit comments

Comments
 (0)