Skip to content

Commit bfcda32

Browse files
committed
Suppress risky test warnings in DocumentationExamplesTest
1 parent 8c7a92c commit bfcda32

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/DocumentationExamplesTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1232,6 +1232,8 @@ public function testTransactions_intro_example_1()
12321232
{
12331233
$this->skipIfTransactionsAreNotSupported();
12341234

1235+
$this->assertNotNull('This test intentionally performs no assertions');
1236+
12351237
$client = new Client(static::getUri());
12361238

12371239
/* The WC is required: https://docs.mongodb.com/manual/core/transactions/#transactions-and-locks */
@@ -1392,6 +1394,8 @@ public function testTransactions_retry_example_3()
13921394
{
13931395
$this->skipIfTransactionsAreNotSupported();
13941396

1397+
$this->assertNotNull('This test intentionally performs no assertions');
1398+
13951399
$client = new Client(static::getUri());
13961400

13971401
/* The WC is required: https://docs.mongodb.com/manual/core/transactions/#transactions-and-locks */
@@ -1420,6 +1424,8 @@ function testCausalConsistency()
14201424
$this->markTestSkipped('Secondary is not available');
14211425
}
14221426

1427+
$this->assertNotNull('This test intentionally performs no assertions');
1428+
14231429
// Prep
14241430
$client = new Client(static::getUri());
14251431
$items = $client->selectDatabase(

0 commit comments

Comments
 (0)