Ignore some errors in stderr in some tests

This commit is contained in:
Aleksander Machniak 2024-04-18 14:03:46 +02:00
parent 4f8869529e
commit 95cc2eb973

View file

@ -277,8 +277,10 @@ class RecurrenceTest extends PHPUnit\Framework\TestCase
$recurrence = $this->plugin->get_recurrence();
StderrMock::start();
$recurrence->init($recurrence_data, $start);
$first = $recurrence->first_occurrence();
StderrMock::stop();
$this->assertEquals($expected, $first ? $first->format('Y-m-d H:i:s') : '');
}
@ -299,8 +301,10 @@ class RecurrenceTest extends PHPUnit\Framework\TestCase
$recurrence = $this->plugin->get_recurrence();
StderrMock::start();
$recurrence->init($recurrence_data, $start);
$first = $recurrence->first_occurrence();
StderrMock::stop();
$this->assertEquals($expected, $first ? $first->format('Y-m-d H:i:s') : '');