Skip to content

Commit 70585bd

Browse files
committed
AC-9749: PHPUnit 10 update test fixes
1 parent 0ce5f17 commit 70585bd

File tree

2 files changed

+11
-15
lines changed

2 files changed

+11
-15
lines changed

phpunit.xml.dist

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,23 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
32
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/9.1/phpunit.xsd"
3+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
54
backupGlobals="false"
65
colors="true"
7-
bootstrap="vendor/autoload.php"
8-
>
6+
bootstrap="vendor/autoload.php">
97
<php>
10-
<ini name="error_reporting" value="-1" />
8+
<ini name="error_reporting" value="-1"/>
119
</php>
12-
1310
<testsuites>
1411
<testsuite name="Magento Composer Library Test">
1512
<directory>./tests/</directory>
1613
</testsuite>
1714
</testsuites>
18-
19-
<filter>
20-
<whitelist>
15+
<source>
16+
<include>
2117
<directory>./</directory>
22-
<exclude>
23-
<directory>./tests</directory>
24-
</exclude>
25-
</whitelist>
26-
</filter>
18+
</include>
19+
<exclude>
20+
<directory>./tests</directory>
21+
</exclude>
22+
</source>
2723
</phpunit>

tests/Composer/InfoCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function testRunInstalled()
7474
*
7575
* @return array
7676
*/
77-
public function getCommandOutputDataProvider()
77+
public static function getCommandOutputDataProvider()
7878
{
7979
return [
8080
'Package not installed' => [

0 commit comments

Comments
 (0)