Skip to content
This repository was archived by the owner on Jun 29, 2021. It is now read-only.

Commit 6aeccaa

Browse files
author
José Postiga
committed
refactor: added domains folder and updated PHPUnit config
1 parent 4882fc9 commit 6aeccaa

File tree

4 files changed

+9
-46
lines changed

4 files changed

+9
-46
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
},
3434
"autoload": {
3535
"psr-4": {
36-
"App\\": "app/"
36+
"App\\": "app/",
37+
"Domains\\":"domains/"
3738
},
3839
"classmap": [
3940
"database/seeds",

phpunit.xml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,18 @@
1111
processIsolation="false"
1212
stopOnFailure="false">
1313
<testsuites>
14-
<testsuite name="Unit">
15-
<directory suffix="Test.php">./tests/Unit</directory>
16-
</testsuite>
17-
18-
<testsuite name="Feature">
19-
<directory suffix="Test.php">./tests/Feature</directory>
14+
<testsuite name="Domains">
15+
<directory suffix="Test.php">./domains/*/Tests</directory>
2016
</testsuite>
2117
</testsuites>
2218
<filter>
2319
<whitelist processUncoveredFilesFromWhitelist="true">
2420
<directory suffix=".php">./app</directory>
21+
<directory suffix=".php">./domains</directory>
22+
<exclude>
23+
<directory suffix=".php">./domains/*/Database</directory>
24+
<directory suffix=".php">./domains/*/Tests</directory>
25+
</exclude>
2526
</whitelist>
2627
</filter>
2728
<php>

tests/Feature/ExampleTest.php

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

tests/Unit/ExampleTest.php

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

0 commit comments

Comments
 (0)