$testName) { echo "\n๐Ÿ”„ Test Case " . ($index + 1) . ": '$testName'\n"; echo "----------------------------------------\n"; try { $config = [ 'name' => $testName, 'type' => 'basic', 'create_table' => false, 'use_middleware' => false, 'create_submodules' => false ]; $generator = new ModuleGeneratorEnhanced($config); // Get the validated config to see the namespace $reflection = new ReflectionClass($generator); $configProperty = $reflection->getProperty('config'); $configProperty->setAccessible(true); $validatedConfig = $configProperty->getValue($generator); echo "โœ… Input: '$testName'\n"; echo "๐Ÿ“ Directory: '{$validatedConfig['directory_name']}'\n"; echo "๐Ÿท๏ธ Namespace: '{$validatedConfig['namespace']}'\n"; echo "๐Ÿ“‹ Route: '{$validatedConfig['route_name']}'\n"; // Verify the namespace follows our convention $expectedNamespace = ucfirst(strtolower($testName)); if ($validatedConfig['namespace'] === $expectedNamespace) { echo "โœ… Namespace convention: CORRECT!\n"; } else { echo "โŒ Namespace convention: FAILED!\n"; echo " Expected: '$expectedNamespace'\n"; echo " Got: '{$validatedConfig['namespace']}'\n"; } } catch (Exception $e) { echo "โŒ Error: " . $e->getMessage() . "\n"; } } echo "\n๐ŸŽฏ Summary\n"; echo "==========\n"; echo "โœ… All test cases should show 'Namespace convention: CORRECT!'\n"; echo "๐Ÿ“ The namespace should be: First letter capitalized, rest lowercase\n"; echo "๐Ÿ“ Directory names should be: All lowercase\n"; echo "๐Ÿ”— Route names should be: All lowercase\n"; echo "\n๐Ÿš€ Ready to generate real modules with correct naming!\n";