mirror of
https://github.com/danog/Valinor.git
synced 2024-11-26 20:24:40 +01:00
Add basic test
This commit is contained in:
parent
ce715b4467
commit
ba4d54e214
@ -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}",
|
||||
|
Loading…
Reference in New Issue
Block a user