Skip to content

Commit 2a269ef

Browse files
committed
Fix scrutinizer build #10
1 parent 74194d2 commit 2a269ef

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

.scrutinizer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ build:
3434
tests:
3535
before:
3636
-
37-
command: composer test:coverage
37+
command: composer test:scrutinizer
3838
coverage:
3939
file: 'build/logs/clover.xml'
4040
format: 'clover'

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@
4848
"sniffer:check": "phpcs --standard=phpcs.xml",
4949
"sniffer:fix": "phpcbf --standard=phpcs.xml",
5050
"test": "phpunit --configuration phpunit.xml --do-not-cache-result --colors=always",
51-
"test:coverage": "phpunit --configuration phpunit.xml --do-not-cache-result --colors=always --coverage-clover build/logs/clover.xml --coverage-html build/coverage"
51+
"test:coverage": "phpunit --configuration phpunit.xml --do-not-cache-result --colors=always --coverage-clover build/logs/clover.xml --coverage-html build/coverage",
52+
"test:scrutinizer": "phpunit --configuration phpunit8.xml --do-not-cache-result --colors=always --coverage-clover build/logs/clover.xml --coverage-html build/coverage"
5253
},
5354
"config": {
5455
"sort-packages": true

phpunit8.xml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit bootstrap="vendor/autoload.php" colors="true" backupGlobals="false" backupStaticAttributes="false">
3+
<testsuites>
4+
<testsuite name="Tests">
5+
<directory suffix="Test.php">tests</directory>
6+
</testsuite>
7+
</testsuites>
8+
<filter>
9+
<whitelist processUncoveredFilesFromWhitelist="false">
10+
<directory suffix=".php">src</directory>
11+
<exclude>
12+
<directory>vendor</directory>
13+
<directory>build</directory>
14+
</exclude>
15+
</whitelist>
16+
</filter>
17+
</phpunit>

0 commit comments

Comments
 (0)