"Add docstrings to all functions and file headers."
Description
This PR adds docstrings to several functions in GedcomExporterTest.php and ImporterTests.php as requested in the issue. The docstrings provide a clear description of each function's purpose, its inputs, and its outputs, following the project's docstring style guide.
The following functions now have docstrings:
setupExportTestEnvironment in GedcomExporterTest.php
verifyExportedFileExists in GedcomExporterTest.php
prepareMockDataForNoteImport in ImporterTests.php
verifyNoteImportResult in ImporterTests.php
verifyObjeImportResult in ImporterTests.php
Summary of Changes
Added a docstring to setupExportTestEnvironment function in GedcomExporterTest.php
Added a docstring to verifyExportedFileExists function in GedcomExporterTest.php
Added a docstring to prepareMockDataForNoteImport function in ImporterTests.php
Added a docstring to verifyNoteImportResult function in ImporterTests.php
Added a docstring to verifyObjeImportResult function in ImporterTests.php
These changes improve the readability and consistency of the codebase, making it easier for other developers to understand the purpose and functionality of these functions.
PR Feedback (click)
I created this PR to address this rule:
"Add docstrings to all functions and file headers."
Description
This PR adds docstrings to several functions in
GedcomExporterTest.php
andImporterTests.php
as requested in the issue. The docstrings provide a clear description of each function's purpose, its inputs, and its outputs, following the project's docstring style guide.The following functions now have docstrings:
setupExportTestEnvironment
inGedcomExporterTest.php
verifyExportedFileExists
inGedcomExporterTest.php
prepareMockDataForNoteImport
inImporterTests.php
verifyNoteImportResult
inImporterTests.php
verifyObjeImportResult
inImporterTests.php
Summary of Changes
setupExportTestEnvironment
function inGedcomExporterTest.php
verifyExportedFileExists
function inGedcomExporterTest.php
prepareMockDataForNoteImport
function inImporterTests.php
verifyNoteImportResult
function inImporterTests.php
verifyObjeImportResult
function inImporterTests.php
These changes improve the readability and consistency of the codebase, making it easier for other developers to understand the purpose and functionality of these functions.