Skip to content

Commit de7948b

Browse files
committed
Deprecations are tested
1 parent 6364173 commit de7948b

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

tests/Model/CodecCursorFunctionalTest.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,12 @@ function (...$args) use (&$previousErrorHandler, &$deprecations) {
5555
E_USER_DEPRECATED | E_DEPRECATED,
5656
);
5757

58-
$cursorId = $codecCursor->getId(true);
58+
$cursorId = $codecCursor->getId();
5959
} finally {
6060
restore_error_handler();
6161
}
6262

63-
self::logicalOr(
64-
self::isInstanceOf(Int64::class),
65-
self::isInstanceOf(CursorId::class),
66-
)->matches($cursorId);
63+
self::assertInstanceOf(CursorId::class, $cursorId);
6764

6865
// Expect 2 deprecations: 1 from CodecCursor, one from Cursor
6966
self::assertCount(2, $deprecations);

0 commit comments

Comments
 (0)