Skip to content

Conversation

@erseco
Copy link
Collaborator

@erseco erseco commented Feb 2, 2025

This pull request includes changes to the ElpParser class and its corresponding unit tests to update the handling of ELP file versions. The most important changes include modifying the version detection logic, updating metadata extraction methods, and revising the unit tests to reflect the new versioning scheme.

Changes to version detection and metadata extraction:

  • src/ElpParser.php: Updated the version detection logic to correctly identify version 3 ELP files based on the presence of both content.xml and index.html. Adjusted the metadata extraction methods to align with the new versioning scheme. [1] [2] [3]

Updates to unit tests:

  • tests/Unit/ElpParserTest.php: Revised the unit tests to validate the parsing and metadata extraction for version 3 ELP files. Added new tests for additional version 3 ELP files and adjusted existing tests to ensure accurate version detection and metadata validation. [1] [2] [3] [4] [5]

Additionally, minor changes were made to the .gitattributes file to include new entries for export-ignore:

  • .gitattributes: Added entries for .gitattributes, .gitignore, .php-cs-fixer.dist.php, and .readthedocs.yaml to the export-ignore list.

@erseco erseco requested a review from ignaciogros February 2, 2025 20:24
@erseco erseco self-assigned this Feb 2, 2025
@erseco erseco merged commit 31c1226 into main Feb 2, 2025
12 checks passed
@erseco erseco deleted the add-v26-fixtures branch February 2, 2025 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants