File tree Expand file tree Collapse file tree 3 files changed +23
-18
lines changed Expand file tree Collapse file tree 3 files changed +23
-18
lines changed Original file line number Diff line number Diff line change 261261.PHONY : test
262262test :
263263 cp phpunit.xml.dist phpunit.xml
264- ./vendor/bin/phpunit --migrate-configuration || true
264+ # ./vendor/bin/phpunit --migrate-configuration || true
265265 XDEBUG_MODE=coverage ./vendor/bin/phpunit --stderr test
266266
267267# Remove all installed files
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" UTF-8" ?>
22<phpunit backupGlobals =" false"
3- backupStaticAttributes=" false"
43 bootstrap=" vendor/autoload.php"
54 colors=" true"
6- convertErrorsToExceptions=" true"
7- convertNoticesToExceptions=" true"
8- convertWarningsToExceptions=" true"
5+ displayDetailsOnTestsThatTriggerDeprecations=" true"
6+ displayDetailsOnTestsThatTriggerErrors=" true"
7+ displayDetailsOnTestsThatTriggerNotices=" true"
8+ displayDetailsOnTestsThatTriggerWarnings=" true"
9+ displayDetailsOnPhpunitDeprecations=" true"
910 processIsolation=" false"
10- stopOnFailure=" false"
11- verbose=" true" >
11+ stopOnFailure=" false" >
1212 <testsuites >
1313 <testsuite name =" tc-lib-color Test Suite" >
1414 <directory >./test</directory >
1515 </testsuite >
1616 </testsuites >
17- <filter >
18- <whitelist >
19- <directory suffix =" php" >src</directory >
20- </whitelist >
21- </filter >
17+ <source >
18+ <include >
19+ <directory suffix =" .php" >src</directory >
20+ </include >
21+ </source >
22+ <coverage >
23+ <report >
24+ <clover outputFile =" target/coverage/coverage.xml" />
25+ <html outputDirectory =" target/coverage" lowUpperBound =" 50" highLowerBound =" 90" />
26+ </report >
27+ </coverage >
2228 <logging >
23- <log type =" coverage-html" target =" target/coverage" />
24- <log type =" coverage-clover" target =" target/coverage/coverage.xml" />
25- <log type =" junit" target =" target/logs/junit.xml" />
29+ <junit outputFile =" target/logs/junit.xml" />
2630 </logging >
2731</phpunit >
Original file line number Diff line number Diff line change 1616
1717namespace Test ;
1818
19+ use PHPUnit \Framework \Attributes \DataProvider ;
20+
1921/**
2022 * Web Color class test
2123 *
@@ -214,9 +216,8 @@ public static function getBadColor(): array
214216 return [['g(-) ' ], ['rgb(-) ' ], ['hsl(-) ' ], ['cmyk(-) ' ]];
215217 }
216218
217- /**
218- * @dataProvider getBadColor
219- */
219+
220+ #[DataProvider('getBadColor ' )]
220221 public function testGetColorObjBad (string $ bad ): void
221222 {
222223 $ this ->bcExpectException ('\\' . \Com \Tecnick \Color \Exception::class);
You can’t perform that action at this time.
0 commit comments