-
Notifications
You must be signed in to change notification settings - Fork 9
Complete rewrite #23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Complete rewrite #23
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR implements a complete rewrite of the XML to PHP config converter, transforming it from a simple script to a comprehensive library with proper error handling, validation, and test coverage using Symfony's own test fixtures.
- Replaced the simple script with a structured class-based converter
- Added comprehensive test coverage using Symfony's DI XML fixtures
- Implemented validation by comparing XML dumps of converted PHP files
Reviewed Changes
Copilot reviewed 9 out of 12 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/SymfonyXmlFixturesTest.php | Comprehensive test suite using Symfony's XML fixtures with validation |
| src/XmlToPhpConfigConverter.php | Main converter class with complete XML to PHP DSL conversion logic |
| src/ConvertCommand.php | Console command for file/directory conversion with validation |
| phpunit.xml | PHPUnit configuration for running tests |
| convert_xml_to_php.php | Removed old conversion script |
| composer.json | Project configuration with Symfony dependencies |
| README.md | Updated documentation with new usage instructions |
| LICENSE | MIT license file |
| .github/workflows/tests.yml | CI workflow for automated testing |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Testing using the fixtures from Symfony tests:
./bin/convert vendor/symfony/dependency-injection/Tests/Fixtures/xml/Fixes:
<service>tag #16