From f442676e637eeb03001150e214e3bd69837ed0e4 Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Mon, 27 Jan 2025 21:56:34 +0100 Subject: [PATCH] [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. --- tests/{ => Unit}/Value/ValueTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename tests/{ => Unit}/Value/ValueTest.php (95%) diff --git a/tests/Value/ValueTest.php b/tests/Unit/Value/ValueTest.php similarity index 95% rename from tests/Value/ValueTest.php rename to tests/Unit/Value/ValueTest.php index a67cbe814..d96485fac 100644 --- a/tests/Value/ValueTest.php +++ b/tests/Unit/Value/ValueTest.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; @@ -17,7 +17,7 @@ final class ValueTest extends TestCase /** * the default set of delimiters for parsing most values * - * @see \Rule\Rule::listDelimiterForRule + * @see \Sabberworm\CSS\Rule\Rule::listDelimiterForRule * * @var array */ @@ -33,7 +33,7 @@ public static function provideArithmeticOperator(): array return \array_combine( $units, \array_map( - function (string $unit): array { + static function (string $unit): array { return [$unit]; }, $units