Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongo-php-library
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sinan
mongo-php-library
Commits
4fc1f90b
Commit
4fc1f90b
authored
Jul 03, 2019
by
Jeremy Mikola
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #635
parents
e3d90cd7
933f845b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
DocumentationExamplesTest.php
tests/DocumentationExamplesTest.php
+8
-0
No files found.
tests/DocumentationExamplesTest.php
View file @
4fc1f90b
...
@@ -6,8 +6,10 @@ use MongoDB\BSON\UTCDateTime;
...
@@ -6,8 +6,10 @@ use MongoDB\BSON\UTCDateTime;
use
MongoDB\Client
;
use
MongoDB\Client
;
use
MongoDB\Database
;
use
MongoDB\Database
;
use
MongoDB\Driver\Cursor
;
use
MongoDB\Driver\Cursor
;
use
MongoDB\Driver\ReadPreference
;
use
MongoDB\Driver\Server
;
use
MongoDB\Driver\Server
;
use
MongoDB\Driver\WriteConcern
;
use
MongoDB\Driver\WriteConcern
;
use
MongoDB\Driver\Exception\ConnectionTimeoutException
;
use
MongoDB\Operation\DropCollection
;
use
MongoDB\Operation\DropCollection
;
/**
/**
...
@@ -1412,6 +1414,12 @@ class DocumentationExamplesTest extends FunctionalTestCase
...
@@ -1412,6 +1414,12 @@ class DocumentationExamplesTest extends FunctionalTestCase
{
{
$this
->
skipIfCausalConsistencyIsNotSupported
();
$this
->
skipIfCausalConsistencyIsNotSupported
();
try
{
$this
->
manager
->
selectServer
(
new
ReadPreference
(
'secondary'
));
}
catch
(
ConnectionTimeoutException
$e
)
{
$this
->
markTestSkipped
(
'Secondary is not available'
);
}
// Prep
// Prep
$client
=
new
Client
(
static
::
getUri
());
$client
=
new
Client
(
static
::
getUri
());
$items
=
$client
->
selectDatabase
(
$items
=
$client
->
selectDatabase
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment