diff --git a/tests/GeneratorTest.php b/tests/GeneratorTest.php index 9c1c85f84..974f9570b 100644 --- a/tests/GeneratorTest.php +++ b/tests/GeneratorTest.php @@ -100,5 +100,13 @@ public function getClassNameDetailsTests(): \Generator 'Symfony\\Bundle\\MakerBundle\\Tests\\GeneratorTest', 'Symfony\\Bundle\\MakerBundle\\Tests\\GeneratorTest', ]; + + yield 'class_with_global_ns_collision' => [ + 'Locale', + '\\Entity', + '', + 'App\\Entity\\Locale', + 'Locale', + ]; } }