Skip to content

Commit b1ff652

Browse files
authored
Allow PHPUnit 10 and Psalm 5 (#69)
1 parent 4cf3d5d commit b1ff652

File tree

3 files changed

+23
-26
lines changed

3 files changed

+23
-26
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
"require-dev": {
1212
"composer-runtime-api": "^2.0.0",
13-
"phpunit/phpunit": "^9",
13+
"phpunit/phpunit": "^9 | ^10",
1414
"squizlabs/php_codesniffer": ">=3.6",
1515
"sebastian/comparator": ">=4",
1616
"sebastian/diff": ">=4",

phpunit.xml

+21-24
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,22 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit backupGlobals="false"
3-
backupStaticAttributes="false"
4-
colors="true"
5-
convertErrorsToExceptions="true"
6-
convertNoticesToExceptions="true"
7-
convertWarningsToExceptions="true"
8-
stopOnFailure="false"
9-
bootstrap="vendor/autoload.php"
10-
>
11-
<testsuites>
12-
<testsuite name="FileEye Testing Suite">
13-
<directory suffix="Test.php">./tests/</directory>
14-
</testsuite>
15-
</testsuites>
16-
<!-- Filter for coverage reports. -->
17-
<filter>
18-
<whitelist>
19-
<directory suffix=".php">./src/</directory>
20-
<exclude>
21-
<directory suffix=".php">./src/Command/</directory>
22-
</exclude>
23-
</whitelist>
24-
</filter>
1+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
backupGlobals="false"
3+
colors="true"
4+
stopOnFailure="false"
5+
bootstrap="vendor/autoload.php"
6+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd"
7+
cacheDirectory=".phpunit.cache"
8+
backupStaticProperties="false">
9+
<coverage>
10+
<include>
11+
<directory suffix=".php">./src/</directory>
12+
</include>
13+
<exclude>
14+
<directory suffix=".php">./src/Command/</directory>
15+
</exclude>
16+
</coverage>
17+
<testsuites>
18+
<testsuite name="FileEye Testing Suite">
19+
<directory suffix="Test.php">./tests/</directory>
20+
</testsuite>
21+
</testsuites>
2522
</phpunit>

tests/src/MapHandlerTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ public function testAddExtensionToAlias(): void
349349
*
350350
* @return array<string,array<string>>
351351
*/
352-
public function malformedTypeProvider(): array
352+
public static function malformedTypeProvider(): array
353353
{
354354
return [
355355
'empty string' => [''],

0 commit comments

Comments
 (0)