From 1f22f330ffa4d6395bb64f0a0e469c9c98941b09 Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Mon, 27 Jan 2025 21:53:35 +0100 Subject: [PATCH] [TASK] Move `SizeTest` to unit tests Also make an anonymous function in the test static. Part of #758. --- tests/{ => Unit}/Value/SizeTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename tests/{ => Unit}/Value/SizeTest.php (93%) diff --git a/tests/Value/SizeTest.php b/tests/Unit/Value/SizeTest.php similarity index 93% rename from tests/Value/SizeTest.php rename to tests/Unit/Value/SizeTest.php index d4c5438a..51da2838 100644 --- a/tests/Value/SizeTest.php +++ b/tests/Unit/Value/SizeTest.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Sabberworm\CSS\Tests\Value; +namespace Sabberworm\CSS\Tests\Unit\Value; use PHPUnit\Framework\TestCase; use Sabberworm\CSS\Parsing\ParserState; @@ -53,7 +53,7 @@ public static function provideUnit(): array return \array_combine( $units, \array_map( - function (string $unit): array { + static function (string $unit): array { return [$unit]; }, $units