Skip to content

Commit efa6bee

Browse files
committed
feat: migrate phpunit configuration structure
1 parent e3d2907 commit efa6bee

File tree

2 files changed

+21
-27
lines changed

2 files changed

+21
-27
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@ storage/*.key
1111
.env
1212
Homestead.yaml
1313
Homestead.json
14+
15+
.phpunit.result.cache

phpunit.xml.dist

Lines changed: 19 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,21 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit backupGlobals="false"
3-
backupStaticAttributes="false"
4-
bootstrap="vendor/autoload.php"
5-
colors="true"
6-
convertErrorsToExceptions="true"
7-
convertNoticesToExceptions="true"
8-
convertWarningsToExceptions="true"
9-
processIsolation="false"
10-
stopOnFailure="false">
11-
<testsuites>
12-
<testsuite name="Package Test Suite">
13-
<directory>./tests/</directory>
14-
</testsuite>
15-
</testsuites>
16-
<filter>
17-
<whitelist>
18-
<directory suffix=".php">app/</directory>
19-
</whitelist>
20-
</filter>
21-
<php>
22-
<env name="APP_ENV" value="testing"/>
23-
<env name="CACHE_DRIVER" value="array"/>
24-
<env name="SESSION_DRIVER" value="array"/>
25-
<env name="QUEUE_DRIVER" value="sync"/>
26-
<env name="CACHE_DRIVER" value="array"/>
27-
<env name="DB_CONNECTION" value="sqlite"/>
28-
</php>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" backupStaticAttributes="false" bootstrap="vendor/autoload.php" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
3+
<coverage>
4+
<include>
5+
<directory suffix=".php">app/</directory>
6+
</include>
7+
</coverage>
8+
<testsuites>
9+
<testsuite name="Package Test Suite">
10+
<directory>./tests/</directory>
11+
</testsuite>
12+
</testsuites>
13+
<php>
14+
<env name="APP_ENV" value="testing"/>
15+
<env name="CACHE_DRIVER" value="array"/>
16+
<env name="SESSION_DRIVER" value="array"/>
17+
<env name="QUEUE_DRIVER" value="sync"/>
18+
<env name="CACHE_DRIVER" value="array"/>
19+
<env name="DB_CONNECTION" value="sqlite"/>
20+
</php>
2921
</phpunit>

0 commit comments

Comments
 (0)