diff --git a/tests/ExamplesTest.php b/tests/ExamplesTest.php index b3eda5fe6..2d4a55301 100644 --- a/tests/ExamplesTest.php +++ b/tests/ExamplesTest.php @@ -360,6 +360,10 @@ public function testQueryableEncryptionExamples(string $file, string $expectedOu $this->skipIfServerVersion('<', '7.0.0', 'Queryable encryption tests require MongoDB 7.0 or later'); + if ($this->isStandalone()) { + $this->markTestSkipped('Queryable encryption requires replica sets'); + } + /* Ensure that the key vault, collection under test, and any metadata * collections are cleaned up before and after the example is run. */ $this->dropCollection('test', 'coll', ['encryptedFields' => []]);