Skip to content

Commit 249b5d7

Browse files
committed
Add tests
1 parent 520ab7b commit 249b5d7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/unit/Types/GenericTypeTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,15 @@ public function testToString(string $expectedResult, GenericType $type): void
4444
public static function provideToStringData(): array
4545
{
4646
return [
47+
'without fqsen' => [
48+
'object<string>',
49+
new GenericType(
50+
null,
51+
[
52+
new String_(),
53+
]
54+
),
55+
],
4756
'collection without key' => [
4857
'\\ArrayObject<string>',
4958
new GenericType(new Fqsen('\\ArrayObject'), [new String_()]),

0 commit comments

Comments
 (0)