Skip to content

Commit 88eaa9a

Browse files
committed
[CLEANUP] Move PHPUnit configuration to Build/
1 parent 7f85aa8 commit 88eaa9a

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
/.github/ export-ignore
44
/.gitignore export-ignore
55
/.phive/ export-ignore
6+
/Build/ export-ignore
67
/CODE_OF_CONDUCT.md export-ignore
78
/CONTRIBUTING.md export-ignore
89
/bin/ export-ignore

phpunit.xml renamed to Build/phpunit/config.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
>
1313
<testsuites>
1414
<testsuite name="Project Test Suite">
15-
<directory>tests</directory>
15+
<directory>../../tests</directory>
1616
</testsuite>
1717
</testsuites>
1818

1919
<filter>
2020
<whitelist>
21-
<directory suffix=".php">src</directory>
21+
<directory suffix=".php">../../src</directory>
2222
</whitelist>
2323
</filter>
2424
</phpunit>

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@
9696
"check:tests": [
9797
"@check:tests:unit"
9898
],
99-
"check:tests:coverage": "phpunit --do-not-cache-result --coverage-clover=coverage.xml",
100-
"check:tests:sof": "phpunit --stop-on-failure --do-not-cache-result",
101-
"check:tests:unit": "phpunit --do-not-cache-result",
99+
"check:tests:coverage": "phpunit --config=./Build/phpunit/config.xml --do-not-cache-result --coverage-clover=coverage.xml",
100+
"check:tests:sof": "phpunit --config=./Build/phpunit/config.xml --do-not-cache-result --stop-on-failure",
101+
"check:tests:unit": "phpunit --config=./Build/phpunit/config.xml --do-not-cache-result",
102102
"fix": [
103103
"@fix:php"
104104
],

0 commit comments

Comments
 (0)