We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79b5f28 commit 5dc67a8Copy full SHA for 5dc67a8
tests/Util/UseStatementGeneratorTest.php
@@ -90,4 +90,20 @@ public function testUseStatementsWithAliases(): void
90
EOT;
91
self::assertSame($expected, (string) $unsorted);
92
}
93
+
94
+ public function testUseStatementsWithDuplicates(): void
95
+ {
96
+ $unsorted = new UseStatementGenerator([
97
+ \Symfony\UX\Turbo\Attribute\Broadcast::class,
98
+ \ApiPlatform\Core\Annotation\ApiResource::class,
99
100
+ ]);
101
102
+ $expected = <<< 'EOT'
103
+ use ApiPlatform\Core\Annotation\ApiResource;
104
+ use Symfony\UX\Turbo\Attribute\Broadcast;
105
106
+ EOT;
107
+ self::assertSame($expected, (string) $unsorted);
108
+ }
109
0 commit comments