liberu-genealogy / laravel-gedcom

Gedcom reading and writing for Laravel 11
https://www.liberu.co.uk
MIT License
76 stars 50 forks source link

Add Unit Tests for ServiceProvider Singleton Registration #24

Closed sweep-ai[bot] closed 3 months ago

sweep-ai[bot] commented 3 months ago

PR Feedback (click)

The new test file includes a test method, testGedcomParserSingletonRegistration, which resolves the GedcomParser from the Laravel service container twice and asserts that both instances are the same, confirming the singleton behavior.

In addition to the new test file, a minor modification was made to the GedcomImporterTest.php file to include a PHPDoc comment at the top of the file for consistency and clarity.

Summary of Changes

sweep-ai[bot] commented 3 months ago

Rollback Files For Sweep