liberu-genealogy / php-gedcom

Gedcom reading and writing for PHP 8.3
https://www.liberu.co.uk
MIT License
74 stars 40 forks source link

Add Unit Tests for Parser Class and Update Contribution Guidelines #16

Closed sweep-ai[bot] closed 4 months ago

sweep-ai[bot] commented 4 months ago

PR Feedback (click)

To resolve this issue, we have added a new test file tests/ParserTest.php that contains unit tests for the Parser class. The tests cover scenarios where the $names array is empty and where it contains one or more elements, ensuring that the logic behaves as expected in both cases.

Additionally, we have updated the CONTRIBUTE.md file to include instructions about running tests. This ensures that future contributors are aware of the testing requirements and promotes a culture of testing within the project.

Summary of Changes

Please review the changes and provide any feedback. Thank you.

sweep-ai[bot] commented 4 months ago

Rollback Files For Sweep