Skip to content

Commit

Permalink
Deprecations are tested
Browse files Browse the repository at this point in the history
  • Loading branch information
GromNaN committed Sep 19, 2024
1 parent 6364173 commit de7948b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/Model/CodecCursorFunctionalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,12 @@ function (...$args) use (&$previousErrorHandler, &$deprecations) {
E_USER_DEPRECATED | E_DEPRECATED,
);

$cursorId = $codecCursor->getId(true);
$cursorId = $codecCursor->getId();
} finally {
restore_error_handler();
}

self::logicalOr(
self::isInstanceOf(Int64::class),
self::isInstanceOf(CursorId::class),
)->matches($cursorId);
self::assertInstanceOf(CursorId::class, $cursorId);

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

0 comments on commit de7948b

Please sign in to comment.