Fix PHPUnit tests for 3.8.x
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3548317. -->
Reported by: [joelpittet](https://www.drupal.org/user/160302)
Related to !65
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p><a href="https://git.drupalcode.org/project/date_recur/-/jobs/6639988">https://git.drupalcode.org/project/date_recur/-/jobs/6639988</a><br>
There were a number of unrelated errors in PHPUnit that need to be addressed in 3.8.x</p>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<p>Run<br>
<code>ddev phpunit</code></p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Address errors and calls to undefined functions.</p>
> Related issue: [Issue #3535605](https://www.drupal.org/node/3535605)
issue