Skip to content

Commit 07a0065

Browse files
Copilotsrtfisher
andcommitted
Update phpunit.xml to match create-php-package standards and remove phpstan
Co-authored-by: srtfisher <346399+srtfisher@users.noreply.github.com>
1 parent 1032d94 commit 07a0065

File tree

3 files changed

+10
-21
lines changed

3 files changed

+10
-21
lines changed

composer.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020
},
2121
"require-dev": {
2222
"alleyinteractive/alley-coding-standards": "^2.0",
23-
"mantle-framework/testkit": "^1.0",
24-
"szepeviktor/phpstan-wordpress": "^2.0"
23+
"mantle-framework/testkit": "^1.0"
2524
},
2625
"minimum-stability": "dev",
2726
"prefer-stable": true,
@@ -53,11 +52,9 @@
5352
"scripts": {
5453
"phpcbf": "phpcbf .",
5554
"phpcs": "phpcs .",
56-
"phpstan": "phpstan --memory-limit=512M",
5755
"phpunit": "phpunit",
5856
"test": [
5957
"@phpcs",
60-
"@phpstan",
6158
"@phpunit"
6259
]
6360
}

phpstan.neon

Lines changed: 0 additions & 11 deletions
This file was deleted.

phpunit.xml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
11
<?xml version="1.0"?>
22
<phpunit
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd"
45
bootstrap="tests/bootstrap.php"
56
backupGlobals="false"
67
colors="true"
7-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.2/phpunit.xsd"
8-
cacheDirectory=".phpunit.result.cache">
8+
cacheDirectory=".phpunit.result.cache"
9+
>
910
<testsuites>
1011
<testsuite name="Feature">
11-
<directory suffix="Test.php">tests/Feature</directory>
12+
<directory suffix=".php">tests/Feature</directory>
1213
</testsuite>
1314
<testsuite name="Unit">
14-
<directory suffix="Test.php">tests/Unit</directory>
15+
<directory suffix=".php">tests/Unit</directory>
1516
</testsuite>
1617
</testsuites>
1718
<php>
18-
<env name="MANTLE_USE_SQLITE" value="true" />
19-
<env name="WP_SKIP_DB_CREATE" value="true" />
19+
<ini name="error_reporting" value="-1" />
20+
<ini name="display_errors" value="1" />
21+
<!-- <env name="MANTLE_USE_SQLITE" value="true" /> -->
22+
<!-- <env name="WP_SKIP_DB_CREATE" value="true" /> -->
2023
</php>
2124
</phpunit>

0 commit comments

Comments
 (0)