Skip to content

PHPC-1113: Migrate tests to use a common URI env var #787

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 35 commits into from
May 3, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
f4cf0fe
PHPC-1113: Use common URI env var in basic/skipif includes
jmikola Mar 1, 2018
8a83606
PHPC-1113: Replace NEEDS_CRYPTO() with skip function
jmikola Mar 23, 2018
cf6aa41
PHPC-1113: Replace NEEDS_SSL() with skip function
jmikola Mar 26, 2018
6960868
PHPC-1113: Replace NEEDS_STORAGE_ENGINE() with skip function
jmikola Mar 26, 2018
fe52b48
PHPC-1113: Replace NEEDS_ATLEAST_MONGODB_VERSION() with skip function
jmikola Mar 26, 2018
38405a7
PHPC-1113: Replace TESTCOMMANDS() with skip function
jmikola Mar 26, 2018
3a1362b
PHPC-1113: Replace NEEDS('REPLICASET') with skip function
jmikola Mar 26, 2018
8768f54
PHPC-1113: Replace NEEDS('STANDALONE_AUTH') with skip function
jmikola Mar 26, 2018
55e3341
PHPC-1113: Replace NEEDS('STANDALONE_X509') with skip function
jmikola Mar 26, 2018
b4062f8
PHPC-1113: Replace CLEANUP() with skip function
jmikola Mar 27, 2018
fc4cbd4
PHPC-1113: Replace NEEDS('STANDALONE_SSL') with skip function
jmikola Mar 28, 2018
5f7f350
PHPC-1113: Replace NEEDS('STANDALONE') with skip function
jmikola Apr 25, 2018
037e393
PHPC-1113: Replace NEEDS('STANDALONE_30') with skip functions
jmikola Apr 25, 2018
9d4bc8d
PHPC-1113: Replace NEEDS('REPLICASET_30') with skip functions
jmikola Apr 25, 2018
f242f9d
PHPC-1113: Disable LDAP tests (defer to PHPC-1172)
jmikola Apr 25, 2018
0534486
PHPC-1113: Disable replica set seedlist tests (defer to PHPC-1173)
jmikola Apr 25, 2018
e50a011
PHPC-1113: Remove NEEDS() from manual DNS seedlist test
jmikola Apr 25, 2018
9f7d2af
Update comment and title in SSL tests
jmikola Apr 25, 2018
0f15a16
PHPC-1113: Require SSL for MONGODB-X509 tests
jmikola Apr 25, 2018
58fa85e
PHPC-1113: Use common URI constant
jmikola Apr 25, 2018
2cbe426
Test for PHPC-1045 should require that the URI has no username
jmikola Apr 25, 2018
73fc8a5
Finish sentence in test comment
jmikola May 1, 2018
014f2b6
Create append_uri_option() helper function
jmikola May 1, 2018
7ddb1fd
PHPC-1113: Disable parse_url() tests (defer to PHPC-1177)
jmikola May 1, 2018
25f9c3d
PHPC-1113: Disable tests that load data fixtures (defer to PHPC-1178)
jmikola May 1, 2018
aee1d13
PHPC-1113: Replace CLEANUP() calls in APM tests
jmikola May 1, 2018
27a0452
PHPC-1113: Disable tests that start servers with MO (defer to PHPC-1179)
jmikola May 1, 2018
6cafb28
PHPC-1113: Use skip_if_not_standalone() for tests requiring a standalone
jmikola May 2, 2018
f79a626
Fix test titles
jmikola May 2, 2018
fc8b862
PHPC-1113: Allow extra output for replica sets
jmikola May 2, 2018
f7d8169
Select primary server for use in write command tests
jmikola May 2, 2018
62797b0
PHPC-1113: Make WriteError tests server version agnostic
jmikola May 2, 2018
8ca94d0
PHPC-1113: Use >=3.1 for version skips instead of >3.0.99
jmikola May 3, 2018
dcc2fdf
PHPC-1113: Use XFAIL instead of skips for tests to be reimplemented
jmikola May 3, 2018
e70c79d
PHPC-1113: Remove LOAD(STANDALONE) from tests to be reimplemented
jmikola May 3, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 3 additions & 2 deletions tests/apm/bug0950-001.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
PHPC-950: Segfault killing cursor after subscriber HashTable is destroyed (no subscribers)
--SKIPIF--
<?php require __DIR__ . "/../utils/basic-skipif.inc"; ?>
<?php NEEDS('STANDALONE'); CLEANUP(STANDALONE); ?>
<?php skip_if_not_live(); ?>
<?php skip_if_not_clean(); ?>
--FILE--
<?php
require_once __DIR__ . "/../utils/basic.inc";

$manager = new MongoDB\Driver\Manager(STANDALONE);
$manager = new MongoDB\Driver\Manager(URI);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You did write a script for this one, right? :-)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was a scripted search and replace, but everything else was manual as it required adding c conditional skips (e.g. REPLICASET needed to require a replica set topology). After bulk-changing these to URI, I then ran the suite against various topologies to determine which tests were not topology-agnostic.


$bulk = new MongoDB\Driver\BulkWrite();
$bulk->insert(['_id' => 1]);
Expand Down
5 changes: 3 additions & 2 deletions tests/apm/bug0950-002.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
PHPC-950: Segfault killing cursor after subscriber HashTable is destroyed (one subscriber)
--SKIPIF--
<?php require __DIR__ . "/../utils/basic-skipif.inc"; ?>
<?php NEEDS('STANDALONE'); CLEANUP(STANDALONE); ?>
<?php skip_if_not_live(); ?>
<?php skip_if_not_clean(); ?>
--FILE--
<?php
require_once __DIR__ . "/../utils/basic.inc";
Expand All @@ -25,7 +26,7 @@ class MySubscriber implements MongoDB\Driver\Monitoring\CommandSubscriber
}
}

$manager = new MongoDB\Driver\Manager(STANDALONE);
$manager = new MongoDB\Driver\Manager(URI);

$bulk = new MongoDB\Driver\BulkWrite();
$bulk->insert(['_id' => 1]);
Expand Down
7 changes: 4 additions & 3 deletions tests/apm/monitoring-addSubscriber-001.phpt
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
--TEST--
MongoDB\Driver\Monitoring\addSubscriber(): Adding one subscriber
--SKIPIF--
<?php require __DIR__ . "/../utils/basic-skipif.inc"; CLEANUP(STANDALONE) ?>
<?php require __DIR__ . "/../utils/basic-skipif.inc"; ?>
<?php skip_if_not_live(); ?>
<?php skip_if_not_clean(); ?>
--FILE--
<?php
require_once __DIR__ . "/../utils/basic.inc";

$m = new MongoDB\Driver\Manager(STANDALONE);
$m = new MongoDB\Driver\Manager(URI);

class MySubscriber implements MongoDB\Driver\Monitoring\CommandSubscriber
{
Expand All @@ -24,7 +26,6 @@ class MySubscriber implements MongoDB\Driver\Monitoring\CommandSubscriber
}
}

CLEANUP( STANDALONE );
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this not mean we're not cleaning up data? Maybe I misunderstand.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These instances of CLEANUP() were redundant, as it was already done in SKIPIF. See:

<?php require __DIR__ . "/../utils/basic-skipif.inc"; CLEANUP(STANDALONE) ?>

$query = new MongoDB\Driver\Query( [] );
$subscriber = new MySubscriber;

Expand Down
7 changes: 4 additions & 3 deletions tests/apm/monitoring-addSubscriber-002.phpt
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
--TEST--
MongoDB\Driver\Monitoring\addSubscriber(): Adding two subscribers
--SKIPIF--
<?php require __DIR__ . "/../utils/basic-skipif.inc"; CLEANUP(STANDALONE) ?>
<?php require __DIR__ . "/../utils/basic-skipif.inc"; ?>
<?php skip_if_not_live(); ?>
<?php skip_if_not_clean(); ?>
--FILE--
<?php
require_once __DIR__ . "/../utils/basic.inc";

$m = new MongoDB\Driver\Manager(STANDALONE);
$m = new MongoDB\Driver\Manager(URI);

class MySubscriber implements MongoDB\Driver\Monitoring\CommandSubscriber
{
Expand All @@ -31,7 +33,6 @@ class MySubscriber implements MongoDB\Driver\Monitoring\CommandSubscriber
}
}

CLEANUP( STANDALONE );
$query = new MongoDB\Driver\Query( [] );
$subscriber1 = new MySubscriber( "ONE" );
$subscriber2 = new MySubscriber( "TWO" );
Expand Down
6 changes: 4 additions & 2 deletions tests/apm/monitoring-addSubscriber-003.phpt
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
--TEST--
MongoDB\Driver\Monitoring\addSubscriber(): Adding one subscriber multiple times
--SKIPIF--
<?php require __DIR__ . "/../utils/basic-skipif.inc"; CLEANUP(STANDALONE) ?>
<?php require __DIR__ . "/../utils/basic-skipif.inc"; ?>
<?php skip_if_not_live(); ?>
<?php skip_if_not_clean(); ?>
--FILE--
<?php
require_once __DIR__ . "/../utils/basic.inc";

$m = new MongoDB\Driver\Manager(STANDALONE);
$m = new MongoDB\Driver\Manager(URI);

class MySubscriber implements MongoDB\Driver\Monitoring\CommandSubscriber
{
Expand Down
7 changes: 4 additions & 3 deletions tests/apm/monitoring-addSubscriber-004.phpt
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
--TEST--
MongoDB\Driver\Monitoring\addSubscriber(): Adding three subscribers
--SKIPIF--
<?php require __DIR__ . "/../utils/basic-skipif.inc"; CLEANUP(STANDALONE) ?>
<?php require __DIR__ . "/../utils/basic-skipif.inc"; ?>
<?php skip_if_not_live(); ?>
<?php skip_if_not_clean(); ?>
--FILE--
<?php
require_once __DIR__ . "/../utils/basic.inc";

$m = new MongoDB\Driver\Manager(STANDALONE);
$m = new MongoDB\Driver\Manager(URI);

class MySubscriber implements MongoDB\Driver\Monitoring\CommandSubscriber
{
Expand All @@ -31,7 +33,6 @@ class MySubscriber implements MongoDB\Driver\Monitoring\CommandSubscriber
}
}

CLEANUP( STANDALONE );
$query = new MongoDB\Driver\Query( [] );
$subscriber1 = new MySubscriber( "ONE" );
$subscriber2 = new MySubscriber( "TWO" );
Expand Down
8 changes: 5 additions & 3 deletions tests/apm/monitoring-commandFailed-001.phpt
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
--TEST--
MongoDB\Driver\Monitoring\CommandFailedEvent
--SKIPIF--
<?php require __DIR__ . "/../utils/basic-skipif.inc"; CLEANUP(STANDALONE); ?>
<?php require __DIR__ . "/../utils/basic-skipif.inc"; ?>
<?php skip_if_not_live(); ?>
<?php skip_if_not_clean(); ?>
--FILE--
<?php
require_once __DIR__ . "/../utils/basic.inc";

$m = new MongoDB\Driver\Manager(STANDALONE);
$m = new MongoDB\Driver\Manager(URI);

class MySubscriber implements MongoDB\Driver\Monitoring\CommandSubscriber
{
Expand Down Expand Up @@ -39,7 +41,7 @@ $subscriber = new MySubscriber;

MongoDB\Driver\Monitoring\addSubscriber( $subscriber );

CLEANUP( STANDALONE );
drop_collection(URI, DATABASE_NAME, COLLECTION_NAME);
?>
--EXPECT--
started: drop
Expand Down
8 changes: 5 additions & 3 deletions tests/apm/monitoring-commandFailed-002.phpt
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
--TEST--
MongoDB\Driver\Monitoring\CommandFailedEvent: requestId and operationId match
--SKIPIF--
<?php require __DIR__ . "/../utils/basic-skipif.inc"; CLEANUP(STANDALONE) ?>
<?php require __DIR__ . "/../utils/basic-skipif.inc"; ?>
<?php skip_if_not_live(); ?>
<?php skip_if_not_clean(); ?>
--FILE--
<?php
require_once __DIR__ . "/../utils/basic.inc";

$m = new MongoDB\Driver\Manager(STANDALONE);
$m = new MongoDB\Driver\Manager(URI);

class MySubscriber implements MongoDB\Driver\Monitoring\CommandSubscriber
{
Expand Down Expand Up @@ -34,7 +36,7 @@ $subscriber = new MySubscriber;

MongoDB\Driver\Monitoring\addSubscriber( $subscriber );

CLEANUP( STANDALONE );
drop_collection(URI, DATABASE_NAME, COLLECTION_NAME);
?>
--EXPECT--
started: drop
Expand Down
6 changes: 4 additions & 2 deletions tests/apm/monitoring-commandStarted-001.phpt
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
--TEST--
MongoDB\Driver\Monitoring\CommandStartedEvent
--SKIPIF--
<?php require __DIR__ . "/../utils/basic-skipif.inc"; CLEANUP(STANDALONE) ?>
<?php require __DIR__ . "/../utils/basic-skipif.inc"; ?>
<?php skip_if_not_live(); ?>
<?php skip_if_not_clean(); ?>
--FILE--
<?php
require_once __DIR__ . "/../utils/basic.inc";

$m = new MongoDB\Driver\Manager(STANDALONE);
$m = new MongoDB\Driver\Manager(URI);

class MySubscriber implements MongoDB\Driver\Monitoring\CommandSubscriber
{
Expand Down
6 changes: 4 additions & 2 deletions tests/apm/monitoring-commandSucceeded-001.phpt
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
--TEST--
MongoDB\Driver\Monitoring\CommandSucceededEvent
--SKIPIF--
<?php require __DIR__ . "/../utils/basic-skipif.inc"; CLEANUP(STANDALONE) ?>
<?php require __DIR__ . "/../utils/basic-skipif.inc"; ?>
<?php skip_if_not_live(); ?>
<?php skip_if_not_clean(); ?>
--FILE--
<?php
require_once __DIR__ . "/../utils/basic.inc";

$m = new MongoDB\Driver\Manager(STANDALONE);
$m = new MongoDB\Driver\Manager(URI);

class MySubscriber implements MongoDB\Driver\Monitoring\CommandSubscriber
{
Expand Down
6 changes: 4 additions & 2 deletions tests/apm/monitoring-commandSucceeded-002.phpt
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
--TEST--
MongoDB\Driver\Monitoring\CommandSucceededEvent: requestId and operationId match
--SKIPIF--
<?php require __DIR__ . "/../utils/basic-skipif.inc"; CLEANUP(STANDALONE) ?>
<?php require __DIR__ . "/../utils/basic-skipif.inc"; ?>
<?php skip_if_not_live(); ?>
<?php skip_if_not_clean(); ?>
--FILE--
<?php
require_once __DIR__ . "/../utils/basic.inc";

$m = new MongoDB\Driver\Manager(STANDALONE);
$m = new MongoDB\Driver\Manager(URI);

class MySubscriber implements MongoDB\Driver\Monitoring\CommandSubscriber
{
Expand Down
6 changes: 4 additions & 2 deletions tests/apm/monitoring-removeSubscriber-001.phpt
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
--TEST--
MongoDB\Driver\Monitoring\removeSubscriber(): Removing the only subscriber
--SKIPIF--
<?php require __DIR__ . "/../utils/basic-skipif.inc"; CLEANUP(STANDALONE) ?>
<?php require __DIR__ . "/../utils/basic-skipif.inc"; ?>
<?php skip_if_not_live(); ?>
<?php skip_if_not_clean(); ?>
--FILE--
<?php
require_once __DIR__ . "/../utils/basic.inc";

$m = new MongoDB\Driver\Manager(STANDALONE);
$m = new MongoDB\Driver\Manager(URI);

class MySubscriber implements MongoDB\Driver\Monitoring\CommandSubscriber
{
Expand Down
6 changes: 4 additions & 2 deletions tests/apm/monitoring-removeSubscriber-002.phpt
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
--TEST--
MongoDB\Driver\Monitoring\removeSubscriber(): Removing one of multiple subscribers
--SKIPIF--
<?php require __DIR__ . "/../utils/basic-skipif.inc"; CLEANUP(STANDALONE) ?>
<?php require __DIR__ . "/../utils/basic-skipif.inc"; ?>
<?php skip_if_not_live(); ?>
<?php skip_if_not_clean(); ?>
--FILE--
<?php
require_once __DIR__ . "/../utils/basic.inc";

$m = new MongoDB\Driver\Manager(STANDALONE);
$m = new MongoDB\Driver\Manager(URI);

class MySubscriber implements MongoDB\Driver\Monitoring\CommandSubscriber
{
Expand Down
8 changes: 5 additions & 3 deletions tests/apm/overview.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
PHPC-349: APM Specification
--SKIPIF--
<?php require __DIR__ . "/../utils/basic-skipif.inc"; ?>
<?php NEEDS('STANDALONE'); NEEDS_ATLEAST_MONGODB_VERSION(STANDALONE, "3.2"); CLEANUP(STANDALONE); ?>
<?php skip_if_not_live(); ?>
<?php skip_if_not_clean(); ?>
<?php skip_if_server_version('<', '3.2'); ?>
--FILE--
<?php
require_once __DIR__ . "/../utils/basic.inc";

$m = new MongoDB\Driver\Manager(STANDALONE);
$m = new MongoDB\Driver\Manager(URI);

class MySubscriber implements MongoDB\Driver\Monitoring\CommandSubscriber
{
Expand All @@ -31,7 +33,7 @@ class MySubscriber implements MongoDB\Driver\Monitoring\CommandSubscriber
}

MongoDB\Driver\Monitoring\addSubscriber( new MySubscriber() );
CLEANUP(STANDALONE);
drop_collection(URI, DATABASE_NAME, COLLECTION_NAME);

$d = 12345678;

Expand Down
5 changes: 3 additions & 2 deletions tests/bson/bson-generate-document-id.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
_id should only be generated for top-level document, not embedded docs
--SKIPIF--
<?php require __DIR__ . "/../utils/basic-skipif.inc"; ?>
<?php NEEDS('STANDALONE'); CLEANUP(STANDALONE); ?>
<?php skip_if_not_live(); ?>
<?php skip_if_not_clean(); ?>
--FILE--
<?php
require_once __DIR__ . "/../utils/basic.inc";

$manager = new MongoDB\Driver\Manager(STANDALONE);
$manager = new MongoDB\Driver\Manager(URI);

$user = array(
"username" => "bob",
Expand Down
5 changes: 3 additions & 2 deletions tests/bson/bson-utcdatetime-001.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ MongoDB\BSON\UTCDateTime #001
date.timezone=America/Los_Angeles
--SKIPIF--
<?php require __DIR__ . "/../utils/basic-skipif.inc"; ?>
<?php NEEDS('STANDALONE'); CLEANUP(STANDALONE); ?>
<?php skip_if_not_live(); ?>
<?php skip_if_not_clean(); ?>
--FILE--
<?php

require_once __DIR__ . "/../utils/basic.inc";

$manager = new MongoDB\Driver\Manager(STANDALONE);
$manager = new MongoDB\Driver\Manager(URI);

$utcdatetime = new MongoDB\BSON\UTCDateTime("1416445411987");

Expand Down
5 changes: 3 additions & 2 deletions tests/bson/typemap-001.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
MongoDB\Driver\Cursor::setTypeMap(): Setting typemaps
--SKIPIF--
<?php require __DIR__ . "/../utils/basic-skipif.inc"; ?>
<?php NEEDS('STANDALONE'); CLEANUP(STANDALONE); ?>
<?php skip_if_not_live(); ?>
<?php skip_if_not_clean(); ?>
--FILE--
<?php

Expand All @@ -16,7 +17,7 @@ class MyArrayObject extends ArrayObject implements MongoDB\BSON\Unserializable
}
}

$manager = new MongoDB\Driver\Manager(STANDALONE);
$manager = new MongoDB\Driver\Manager(URI);

$bulk = new MongoDB\Driver\BulkWrite();
$bulk->insert(array('_id' => 1, 'bson_array' => array(1, 2, 3), 'bson_object' => array("string" => "keys", "for" => "ever")));
Expand Down
5 changes: 3 additions & 2 deletions tests/bson/typemap-002.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
MongoDB\Driver\Cursor::setTypeMap(): Setting using type "object"
--SKIPIF--
<?php require __DIR__ . "/../utils/basic-skipif.inc"; ?>
<?php NEEDS('STANDALONE'); CLEANUP(STANDALONE); ?>
<?php skip_if_not_live(); ?>
<?php skip_if_not_clean(); ?>
--FILE--
<?php

require_once __DIR__ . "/../utils/basic.inc";

$manager = new MongoDB\Driver\Manager(STANDALONE);
$manager = new MongoDB\Driver\Manager(URI);

$bulk = new MongoDB\Driver\BulkWrite();
$bulk->insert(array('_id' => 1, 'bson_array' => array(1, 2, 3), 'bson_object' => array("string" => "keys", "for" => "ever")));
Expand Down
5 changes: 3 additions & 2 deletions tests/bson/typemap-003.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
MongoDB\Driver\Cursor::setTypeMap(): Setting and replacing typemaps
--SKIPIF--
<?php require __DIR__ . "/../utils/basic-skipif.inc"; ?>
<?php NEEDS('STANDALONE'); CLEANUP(STANDALONE); ?>
<?php skip_if_not_live(); ?>
<?php skip_if_not_clean(); ?>
--FILE--
<?php

Expand All @@ -20,7 +21,7 @@ class MyProperties extends MyArrayObject
{
}

$manager = new MongoDB\Driver\Manager(STANDALONE);
$manager = new MongoDB\Driver\Manager(URI);

$document1 = [
'_id' => 1,
Expand Down
5 changes: 3 additions & 2 deletions tests/bson/typemap-004.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
MongoDB\Driver\Cursor::setTypeMap(): Setting fieldPath typemaps for compound types with string keys
--SKIPIF--
<?php require __DIR__ . "/../utils/basic-skipif.inc"; ?>
<?php NEEDS('STANDALONE'); CLEANUP(STANDALONE); ?>
<?php skip_if_not_live(); ?>
<?php skip_if_not_clean(); ?>
--FILE--
<?php

Expand All @@ -16,7 +17,7 @@ class MyArrayObject extends ArrayObject implements MongoDB\BSON\Unserializable
}
}

$manager = new MongoDB\Driver\Manager(STANDALONE);
$manager = new MongoDB\Driver\Manager(URI);

$document = [
'_id' => 1,
Expand Down
Loading