Skip to content

Commit 4b312fc

Browse files
committed
chore(phpunit): migrate configuration
1 parent 63ee902 commit 4b312fc

File tree

3 files changed

+57
-32
lines changed

3 files changed

+57
-32
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@
66
/.idea
77
/.php_cs.cache
88
/.phpunit.result.cache
9+
/.phpunit.cache

phpunit.xml

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

phpunit.xml.bak

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit bootstrap="vendor/autoload.php"
3+
backupGlobals="false"
4+
backupStaticAttributes="false"
5+
printerClass="Sempro\PHPUnitPrettyPrinter\PrettyPrinter"
6+
colors="true"
7+
verbose="true"
8+
convertErrorsToExceptions="true"
9+
convertNoticesToExceptions="true"
10+
convertWarningsToExceptions="true"
11+
processIsolation="false"
12+
stopOnFailure="false">
13+
14+
<testsuites>
15+
<testsuite name=":service_name Test Suite">
16+
<directory>tests</directory>
17+
</testsuite>
18+
</testsuites>
19+
<filter>
20+
<whitelist>
21+
<directory suffix=".php">src/</directory>
22+
</whitelist>
23+
</filter>
24+
<php>
25+
<env name="APP_ENV" value="testing"/>
26+
<env name="BCRYPT_ROUNDS" value="4"/>
27+
<env name="CACHE_DRIVER" value="array"/>
28+
<env name="SESSION_DRIVER" value="array"/>
29+
<env name="QUEUE_DRIVER" value="sync"/>
30+
<env name="MAIL_DRIVER" value="array"/>
31+
<env name="DB_CONNECTION" value="sqlite"/>
32+
<env name="DB_DATABASE" value=":memory:"/>
33+
</php>
34+
</phpunit>

0 commit comments

Comments
 (0)