Skip to content

Commit b22024a

Browse files
committed
Update unit test and gitignore
1 parent 38b8809 commit b22024a

File tree

2 files changed

+26
-31
lines changed

2 files changed

+26
-31
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,7 @@ Homestead.json
1010
Homestead.yaml
1111
npm-debug.log
1212
yarn-error.log
13+
/bootstrap/cache/*.php
14+
/storage/framework/views/*
15+
.phpunit.cache
16+
.phpunit.cache/

phpunit.xml

Lines changed: 22 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,24 @@
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="Unit">
13-
<directory suffix="Test.php">./tests/Unit</directory>
14-
</testsuite>
15-
16-
<testsuite name="Feature">
17-
<directory suffix="Test.php">./tests/Feature</directory>
18-
</testsuite>
19-
</testsuites>
20-
<filter>
21-
<whitelist processUncoveredFilesFromWhitelist="true">
22-
<directory suffix=".php">./app</directory>
23-
</whitelist>
24-
</filter>
25-
<php>
26-
<server name="APP_ENV" value="testing"/>
27-
<server name="BCRYPT_ROUNDS" value="4"/>
28-
<server name="CACHE_DRIVER" value="array"/>
29-
<server name="MAIL_DRIVER" value="array"/>
30-
<server name="QUEUE_CONNECTION" value="sync"/>
31-
<server name="SESSION_DRIVER" value="array"/>
32-
</php>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.5/phpunit.xsd" bootstrap="vendor/autoload.php" colors="true" processIsolation="false" stopOnFailure="false" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
3+
<testsuites>
4+
<testsuite name="Unit">
5+
<directory suffix="Test.php">./tests/Unit</directory>
6+
</testsuite>
7+
<testsuite name="Feature">
8+
<directory suffix="Test.php">./tests/Feature</directory>
9+
</testsuite>
10+
</testsuites>
11+
<php>
12+
<server name="APP_ENV" value="testing"/>
13+
<server name="BCRYPT_ROUNDS" value="4"/>
14+
<server name="CACHE_DRIVER" value="array"/>
15+
<server name="MAIL_DRIVER" value="array"/>
16+
<server name="QUEUE_CONNECTION" value="sync"/>
17+
<server name="SESSION_DRIVER" value="array"/>
18+
</php>
19+
<source>
20+
<include>
21+
<directory suffix=".php">./app</directory>
22+
</include>
23+
</source>
3324
</phpunit>

0 commit comments

Comments
 (0)