Skip to content

Commit e3a370d

Browse files
committed
Deprecations are tested
1 parent 6364173 commit e3a370d

File tree

4 files changed

+2
-8
lines changed

4 files changed

+2
-8
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);

tests/SpecTests/RetryableReads/Prose2_RetryOnMongosTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
use MongoDB\Driver\Monitoring\CommandStartedEvent;
88
use MongoDB\Driver\Monitoring\CommandSubscriber;
99
use MongoDB\Driver\Monitoring\CommandSucceededEvent;
10-
use MongoDB\Driver\Server;
1110
use MongoDB\Tests\SpecTests\FunctionalTestCase;
1211

1312
use function assert;

tests/SpecTests/RetryableWrites/Prose5_RetryOnSameMongosTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
use MongoDB\Driver\Monitoring\CommandStartedEvent;
77
use MongoDB\Driver\Monitoring\CommandSubscriber;
88
use MongoDB\Driver\Monitoring\CommandSucceededEvent;
9-
use MongoDB\Driver\Server;
109
use MongoDB\Tests\SpecTests\FunctionalTestCase;
1110

1211
/**

tests/UnifiedSpecTests/EventCollector.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
use function PHPUnit\Framework\assertIsObject;
1919
use function PHPUnit\Framework\assertIsString;
2020
use function PHPUnit\Framework\assertNotEmpty;
21-
use function sprintf;
2221

2322
/**
2423
* EventCollector handles "storeEventsAsEntities" for client entities.

0 commit comments

Comments
 (0)