Skip to content

Commit 384bb03

Browse files
adjusted phpunit config
1 parent 419f3a7 commit 384bb03

File tree

6 files changed

+36
-3
lines changed

6 files changed

+36
-3
lines changed

.scrutinizer.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ build:
22
tests:
33
override:
44
-
5-
command: 'phpunit --testdox'
5+
command: 'phpunit -c phpunit-scrutinizer.xml'
66
environment:
77
php:
88
version: 7.0.8

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ before_script:
33
- wget https://scrutinizer-ci.com/ocular.phar
44
- composer install -n
55
script:
6-
- phpunit --coverage-clover=coverage.clover
6+
- phpunit -c phpunit-travis.xml
77
after_script:
88
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
99
- php vendor/bin/codacycoverage clover coverage.clover

phpunit-scrutinizer.xml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<phpunit bootstrap="testing/bootstrap.php" colors="true">
2+
<testsuites>
3+
<testsuite name="projectcleverweb\color">
4+
<directory>testing/tests</directory>
5+
</testsuite>
6+
</testsuites>
7+
<filter>
8+
<whitelist processUncoveredFilesFromWhitelist="true">
9+
<directory suffix=".php">src</directory>
10+
</whitelist>
11+
</filter>
12+
<logging>
13+
<log type="testdox-text" target="php://stdout"/>
14+
<log type="coverage-text" target="php://stdout" />
15+
</logging>
16+
</phpunit>

phpunit-travis.xml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<phpunit bootstrap="testing/bootstrap.php" colors="true">
2+
<testsuites>
3+
<testsuite name="projectcleverweb\color">
4+
<directory>testing/tests</directory>
5+
</testsuite>
6+
</testsuites>
7+
<filter>
8+
<whitelist processUncoveredFilesFromWhitelist="true">
9+
<directory suffix=".php">src</directory>
10+
</whitelist>
11+
</filter>
12+
<logging>
13+
<log type="coverage-text" target="php://stdout" />
14+
<log type="coverage-clover" target="coverage.clover" />
15+
</logging>
16+
</phpunit>

phpunit.xml

+1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@
1111
</filter>
1212
<logging>
1313
<log type="coverage-text" target="php://stdout" />
14+
<log type="coverage-html" target="coverage" />
1415
</logging>
1516
</phpunit>

testing/tests/01_ConverterTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function HSB_To_RGB() {
8686
* NOTE: This is not a full color space test, it only skims the RGB color
8787
* space for differences.
8888
*
89-
* @ignored_test
89+
* @test
9090
*/
9191
public function RGB_HSL_Interlace_Color_Drift() {
9292
foreach (range(0 ,51) as $b) {

0 commit comments

Comments
 (0)