diff --git a/src/PseudoTypes/DecimalIntString.php b/src/PseudoTypes/DecimalIntString.php new file mode 100644 index 0000000..f550e53 --- /dev/null +++ b/src/PseudoTypes/DecimalIntString.php @@ -0,0 +1,39 @@ + NonEmptyLowercaseString::class, 'non-empty-string' => NonEmptyString::class, 'numeric-string' => NumericString::class, + 'non-decimal-int-string' => NonDecimalIntString::class, + 'decimal-int-string' => DecimalIntString::class, 'numeric' => Numeric_::class, 'trait-string' => TraitString::class, 'enum-string' => EnumString::class, diff --git a/tests/unit/PseudoTypes/DecimalIntString.php b/tests/unit/PseudoTypes/DecimalIntString.php new file mode 100644 index 0000000..0aa5844 --- /dev/null +++ b/tests/unit/PseudoTypes/DecimalIntString.php @@ -0,0 +1,32 @@ +assertEquals(new String_(), $type->underlyingType()); + } + + public function testToString(): void + { + $this->assertSame('decimal-int-string', (string) (new DecimalIntString())); + } +} diff --git a/tests/unit/PseudoTypes/NonDecimalIntString.php b/tests/unit/PseudoTypes/NonDecimalIntString.php new file mode 100644 index 0000000..bd9db99 --- /dev/null +++ b/tests/unit/PseudoTypes/NonDecimalIntString.php @@ -0,0 +1,32 @@ +assertEquals(new String_(), $type->underlyingType()); + } + + public function testToString(): void + { + $this->assertSame('non-decimal-int-string', (string) (new NonDecimalIntString())); + } +}