This PR addresses a typo in the function name in the "tests/WriterTest.php" file. The function name "convertHeadHead" was corrected to "convert" to match the function name in the "src/Writer.php" file.
Summary of Changes
Changed the function call from "Writer::convertHeadHead($gedcom);" to "Writer::convert($gedcom);" on line 27.
Changed the function call from "Writer::convertHeadHead($gedcom, 'custom_format');" to "Writer::convert($gedcom, 'custom_format');" on line 43.
Changed the function call from "Writer::convertHeadHead($gedcom);" to "Writer::convert($gedcom);" on line 62.
Changed the function call from "Writer::convertHeadHead($gedcom, 'custom_format');" to "Writer::convert($gedcom, 'custom_format');" on line 80.
Changed the function call from "Writer::convertHeadHead($gedcom);" to "Writer::convert($gedcom);" on line 101.
These changes ensure that the tests in "tests/WriterTest.php" are calling the correct function in "src/Writer.php".
PR Feedback (click)
I created this PR to address this rule:
"Refactor large functions to be more modular."
Description
This PR addresses a typo in the function name in the "tests/WriterTest.php" file. The function name "convertHeadHead" was corrected to "convert" to match the function name in the "src/Writer.php" file.
Summary of Changes
These changes ensure that the tests in "tests/WriterTest.php" are calling the correct function in "src/Writer.php".