Skip to content

Commit e740aac

Browse files
authored
[TASK] Move SizeTest to unit tests (#836)
Also make an anonymous function in the test static. Part of #758.
1 parent 48ecde4 commit e740aac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 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;
@@ -53,7 +53,7 @@ public static function provideUnit(): array
5353
return \array_combine(
5454
$units,
5555
\array_map(
56-
function (string $unit): array {
56+
static function (string $unit): array {
5757
return [$unit];
5858
},
5959
$units

0 commit comments

Comments
 (0)