"All new business logic should have corresponding unit tests."
Description
This PR adds unit tests for the new business logic in the file WriterTest.php. The new test methods "testConvertWithMultipleFamProperties", "testConvertWithCustomFormat", "testConvertWithMultipleSourProperties", and "testConvertWithSubnProperty" now have corresponding unit tests to ensure their correctness. The unit tests cover different scenarios and edge cases for each of the methods.
Summary of Changes
Created unit tests for the new test methods in WriterTest.php.
Covered different scenarios and edge cases for each method.
Imported necessary classes and methods from Gedcom.php.
Modified the method "createMockGedcom" to handle multiple "Fam" properties.
Added assertions to validate the output of the "convert" method.
Modified the test methods to create mock Gedcom objects with the required properties.
Added additional assertions to cover the basic functionality of the "convert" method.
PR Feedback (click)
I created this PR to address this rule:
"All new business logic should have corresponding unit tests."
Description
This PR adds unit tests for the new business logic in the file WriterTest.php. The new test methods "testConvertWithMultipleFamProperties", "testConvertWithCustomFormat", "testConvertWithMultipleSourProperties", and "testConvertWithSubnProperty" now have corresponding unit tests to ensure their correctness. The unit tests cover different scenarios and edge cases for each of the methods.
Summary of Changes
Please review and merge this PR. Thank you!