summaryrefslogtreecommitdiffstats
path: root/apps/dav
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2023-01-30 11:31:49 +0100
committerCôme Chilliet <come.chilliet@nextcloud.com>2023-02-07 11:23:34 +0100
commit476d5dceb272e897e93e6c64f0990f351cc729c8 (patch)
treebfb429e27d7c410793e09bb0bd66d8627aa156c4 /apps/dav
parent892e6c642a5bc44d53375e3144f1a29a8e81ddd5 (diff)
downloadnextcloud-server-476d5dceb272e897e93e6c64f0990f351cc729c8.tar.gz
nextcloud-server-476d5dceb272e897e93e6c64f0990f351cc729c8.zip
Skip tests that cannot succeed on 32bits
For some reason a timestamp in the past also triggers the PHP error about not being able to represent it as an int, so skipping that test on 32bits. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/dav')
-rw-r--r--apps/dav/tests/unit/CalDAV/CalDavBackendTest.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/apps/dav/tests/unit/CalDAV/CalDavBackendTest.php b/apps/dav/tests/unit/CalDAV/CalDavBackendTest.php
index b39f5909919..69096d0cfbb 100644
--- a/apps/dav/tests/unit/CalDAV/CalDavBackendTest.php
+++ b/apps/dav/tests/unit/CalDAV/CalDavBackendTest.php
@@ -652,8 +652,15 @@ EOS;
* @dataProvider providesCalDataForGetDenormalizedData
*/
public function testGetDenormalizedData($expected, $key, $calData): void {
- $actual = $this->backend->getDenormalizedData($calData);
- $this->assertEquals($expected, $actual[$key]);
+ 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;
+ }
}
public function providesCalDataForGetDenormalizedData() {