Skip to content

Commit ed226dd

Browse files
committed
update to PHPUnit 10
1 parent 23a6aef commit ed226dd

File tree

5 files changed

+23
-18
lines changed

5 files changed

+23
-18
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/composer.lock
22
/composer.phar
33
/phpunit.xml
4-
/.phpunit.result.cache
4+
/.phpunit.cache
55
/phpunit.phar
66
/config/Migrations/schema-dump-default.lock
77
/vendor/

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"symfony/process": "^5.4"
1010
},
1111
"require-dev": {
12-
"phpunit/phpunit": "^9.5",
12+
"phpunit/phpunit": "^10.1",
1313
"cakephp/cakephp-codesniffer": "^5.0"
1414
},
1515
"autoload": {

phpunit.xml.dist

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,9 @@
44
processIsolation="false"
55
stopOnFailure="false"
66
bootstrap="tests/bootstrap.php"
7-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
8-
<coverage>
9-
<include>
10-
<directory suffix=".php">src/</directory>
11-
</include>
12-
</coverage>
7+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.2/phpunit.xsd"
8+
cacheDirectory=".phpunit.cache">
9+
1310
<php>
1411
<ini name="memory_limit" value="-1"/>
1512
<ini name="apc.enable_cli" value="1"/>
@@ -36,6 +33,12 @@
3633

3734
<!-- Setup fixture extension -->
3835
<extensions>
39-
<extension class="Cake\TestSuite\Fixture\PHPUnitExtension"/>
36+
<bootstrap class="Cake\TestSuite\Fixture\Extension\PHPUnitExtension"/>
4037
</extensions>
38+
39+
<source>
40+
<include>
41+
<directory suffix=".php">src/</directory>
42+
</include>
43+
</source>
4144
</phpunit>

psalm.xml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
<?xml version="1.0"?>
22
<psalm
3-
reportMixedIssues="false"
4-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5-
xmlns="https://getpsalm.org/schema/config"
6-
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
7-
autoloader="tests/bootstrap.php"
8-
usePhpDocMethodsWithoutMagicCall="true"
9-
errorBaseline="psalm-baseline.xml"
3+
usePhpDocMethodsWithoutMagicCall="true"
4+
findUnusedPsalmSuppress="true"
5+
findUnusedBaselineEntry="true"
6+
findUnusedCode="false"
7+
resolveFromConfigFile="true"
8+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9+
xmlns="https://getpsalm.org/schema/config"
10+
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
11+
autoloader="tests/bootstrap.php"
12+
errorBaseline="psalm-baseline.xml"
1013
>
1114
<projectFiles>
1215
<directory name="src" />
@@ -18,4 +21,4 @@
1821
<issueHandlers>
1922
<PropertyNotSetInConstructor errorLevel="suppress"/>
2023
</issueHandlers>
21-
</psalm>
24+
</psalm>

tests/TestCase/Command/DumpSqlCommandTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ class DumpSqlCommandTest extends TestCase
2121
public function setUp(): void
2222
{
2323
parent::setUp();
24-
$this->useCommandRunner();
2524
// Sets the TestApp namespace to be used instead of App
2625
$this->setAppNamespace();
2726
$this->configApplication(

0 commit comments

Comments
 (0)