8000 [Tests] Update PHPUnit XML configuration · CodingSeo/laravel-json-api@5d58b63 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5d58b63

Browse files
committed
[Tests] Update PHPUnit XML configuration
1 parent c303c51 commit 5d58b63

File tree

1 file changed

+23
-21
lines changed

1 file changed

+23
-21
lines changed

phpunit.xml

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit backupGlobals="false"
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
backupGlobals="false"
34
backupStaticAttributes="false"
4-
beStrictAboutTestsThatDoNotTestAnything="false"
5+
beStrictAboutTestsThatDoNotTestAnything="true"
56
bootstrap="vendor/autoload.php"
67
colors="true"
78
convertErrorsToExceptions="true"
@@ -11,24 +12,25 @@
1112
stopOnError="false"
1213
stopOnFailure="false"
1314
verbose="true"
15+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
1416
>
15-
<testsuites>
16-
<testsuite name="Unit">
17-
<directory suffix="Test.php">./tests/lib/Unit/</directory>
18-
</testsuite>
19-
<testsuite name="Integration">
20-
<directory suffix="Test.php">./tests/lib/Integration/</directory>
21-
</testsuite>
22-
<testsuite name="Acceptance">
23-
<directory suffix="Test.php">./tests/dummy/tests/</directory>
24-
</testsuite>
25-
</testsuites>
26-
<filter>
27-
<whitelist>
28-
<directory suffix=".php">src/</directory>
29-
</whitelist>
30-
</filter>
31-
<php>
32-
<env name="APP_KEY" value="base64:BMfTqJC1cFk6A/jTPsjQgC+cROx7TDaEeGIAat6CuqY="/>
33-
</php>
17+
<coverage>
18+
<include>
19+
<directory suffix=".php">src/</directory>
20+
</include>
21+
</coverage>
22+
<testsuites>
23+
<testsuite name="Unit">
24+
<directory suffix="Test.php">./tests/lib/Unit/</directory>
25+
</testsuite>
26+
<testsuite name="Integration">
27+
<directory suffix="Test.php">./tests/lib/Integration/</directory>
28+
</testsuite>
29+
<testsuite name="Acceptance">
30+
<directory suffix="Test.php">./tests/dummy/tests/</directory>
31+
</testsuite>
32+
</testsuites>
33+
<php>
34+
<env name="APP_KEY" value="base64:BMfTqJC1cFk6A/jTPsjQgC+cROx7TDaEeGIAat6CuqY="/>
35+
</php>
3436
</phpunit>

0 commit comments

Comments
 (0)
0