Skip to content

Commit 08c3404

Browse files
committed
test: fix failing tests because of null in ctype function
Signed-off-by: Salvatore Martire <4652631+salmart-dev@users.noreply.github.com>
1 parent ea66d03 commit 08c3404

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/Sabre/CalDAV/CalendarObjectTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public function testGetLastModified()
117117
$obj = $children[0];
118118

119119
$lastMod = $obj->getLastModified();
120-
self::assertTrue(is_int($lastMod) || ctype_digit($lastMod) || is_null($lastMod));
120+
self::assertTrue(is_null($lastMod) || is_int($lastMod) || ctype_digit($lastMod));
121121
}
122122

123123
/**

tests/Sabre/CalDAV/Schedule/SchedulingObjectTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public function testGetLastModified()
123123
$obj = $children[0];
124124

125125
$lastMod = $obj->getLastModified();
126-
self::assertTrue(is_int($lastMod) || ctype_digit($lastMod) || is_null($lastMod));
126+
self::assertTrue(is_null($lastMod) || is_int($lastMod) || ctype_digit($lastMod));
127127
}
128128

129129
/**

0 commit comments

Comments
 (0)