Skip to content

Commit e47c4c1

Browse files
committed
Update phpunit
1 parent 51dcdf1 commit e47c4c1

File tree

3 files changed

+23
-18
lines changed

3 files changed

+23
-18
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ tag:
261261
.PHONY: test
262262
test:
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

phpunit.xml.dist

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,31 @@
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>

test/WebTest.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
namespace 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);

0 commit comments

Comments
 (0)