From 3f72635ccba39d45cda4fbb95ba8339bef4d8f5d Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Fri, 23 Jun 2023 09:10:29 +0200 Subject: [PATCH] fix(caldav): removes PHP < 8.0 specific workaround Signed-off-by: Thomas Citharel --- apps/dav/tests/unit/CalDAV/CalDavBackendTest.php | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/apps/dav/tests/unit/CalDAV/CalDavBackendTest.php b/apps/dav/tests/unit/CalDAV/CalDavBackendTest.php index acf5504eb6644..297016d949ec7 100644 --- a/apps/dav/tests/unit/CalDAV/CalDavBackendTest.php +++ b/apps/dav/tests/unit/CalDAV/CalDavBackendTest.php @@ -653,15 +653,8 @@ public function testScheduling($objectData): void { * @dataProvider providesCalDataForGetDenormalizedData */ public function testGetDenormalizedData($expected, $key, $calData): void { - try { - $actual = $this->backend->getDenormalizedData($calData); - $this->assertEquals($expected, $actual[$key]); - } catch (\ValueError $e) { - if (($e->getMessage() === 'Epoch doesn\'t fit in a PHP integer') && (PHP_INT_SIZE < 8)) { - $this->markTestSkipped('This fail on 32bits because of PHP limitations in DateTime'); - } - throw $e; - } + $actual = $this->backend->getDenormalizedData($calData); + $this->assertEquals($expected, $actual[$key]); } public function providesCalDataForGetDenormalizedData(): array {