Add basic test

This commit is contained in:
Daniil Gentili 2022-11-05 14:36:49 +01:00 committed by Romain Canon
parent ce715b4467
commit ba4d54e214

View File

@ -628,6 +628,13 @@ final class NativeLexerTest extends TestCase
'type' => ShapedArrayType::class,
];
yield 'Strict shaped array' => [
'raw' => 'strict-array{foo: string}',
'transformed' => 'array{foo: string}',
'type' => ShapedArrayType::class,
];
yield 'Shaped array with single quote key' => [
'raw' => "array{'foo': string}",
'transformed' => "array{'foo': string}",