Skip to content

Commit f442676

Browse files
committed
[TASK] Move ValueTest to unit tests
Also make an anonymous function in the test static. Also fix a type in an annotation in the test. Part of #758.
1 parent 9f5c7dc commit f442676

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/Value/ValueTest.php renamed to tests/Unit/Value/ValueTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace Sabberworm\CSS\Tests\Value;
5+
namespace Sabberworm\CSS\Tests\Unit\Value;
66

77
use PHPUnit\Framework\TestCase;
88
use Sabberworm\CSS\Parsing\ParserState;
@@ -17,7 +17,7 @@ final class ValueTest extends TestCase
1717
/**
1818
* the default set of delimiters for parsing most values
1919
*
20-
* @see \Rule\Rule::listDelimiterForRule
20+
* @see \Sabberworm\CSS\Rule\Rule::listDelimiterForRule
2121
*
2222
* @var array<int, string>
2323
*/
@@ -33,7 +33,7 @@ public static function provideArithmeticOperator(): array
3333
return \array_combine(
3434
$units,
3535
\array_map(
36-
function (string $unit): array {
36+
static function (string $unit): array {
3737
return [$unit];
3838
},
3939
$units

0 commit comments

Comments
 (0)