diff --git a/tests/PsalmTest.php b/tests/PsalmTest.php index 4cc3b2a..82de738 100644 --- a/tests/PsalmTest.php +++ b/tests/PsalmTest.php @@ -24,6 +24,8 @@ public static function extractType(Type $_type): mixed return null; } + #[TestWith([__DIR__ . '/psalm/AnyLiteralIntType.phpt'])] + #[TestWith([__DIR__ . '/psalm/AnyLiteralStringType.phpt'])] #[TestWith([__DIR__ . '/psalm/ArrayKeyType.phpt'])] #[TestWith([__DIR__ . '/psalm/ArrayShapeType.phpt'])] #[TestWith([__DIR__ . '/psalm/ArrayType.phpt'])] @@ -52,8 +54,6 @@ public static function extractType(Type $_type): mixed #[TestWith([__DIR__ . '/psalm/IterableType.phpt'])] #[TestWith([__DIR__ . '/psalm/KeyOfType.phpt'])] #[TestWith([__DIR__ . '/psalm/ListType.phpt'])] - #[TestWith([__DIR__ . '/psalm/LiteralIntType.phpt'])] - #[TestWith([__DIR__ . '/psalm/LiteralStringType.phpt'])] #[TestWith([__DIR__ . '/psalm/MixedType.phpt'])] #[TestWith([__DIR__ . '/psalm/NamedClassStringType.phpt'])] #[TestWith([__DIR__ . '/psalm/NamedObjectType.phpt'])] diff --git a/tests/psalm/LiteralIntType.phpt b/tests/psalm/AnyLiteralIntType.phpt similarity index 64% rename from tests/psalm/LiteralIntType.phpt rename to tests/psalm/AnyLiteralIntType.phpt index a33c388..5010b1b 100644 --- a/tests/psalm/LiteralIntType.phpt +++ b/tests/psalm/AnyLiteralIntType.phpt @@ -3,7 +3,7 @@ namespace Typhoon\Type; -$_type = PsalmTest::extractType(LiteralIntType::type); +$_type = PsalmTest::extractType(AnyLiteralIntType::type); /** @psalm-check-type-exact $_type = \literal-int */ --EXPECT-- diff --git a/tests/psalm/LiteralStringType.phpt b/tests/psalm/AnyLiteralStringType.phpt similarity index 64% rename from tests/psalm/LiteralStringType.phpt rename to tests/psalm/AnyLiteralStringType.phpt index 0a7574c..0be1005 100644 --- a/tests/psalm/LiteralStringType.phpt +++ b/tests/psalm/AnyLiteralStringType.phpt @@ -3,7 +3,7 @@ namespace Typhoon\Type; -$_type = PsalmTest::extractType(LiteralStringType::type); +$_type = PsalmTest::extractType(AnyLiteralStringType::type); /** @psalm-check-type-exact $_type = \literal-string */ --EXPECT--