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
ffae0553
Commit
ffae0553
authored
Jun 30, 2015
by
Derick Rethans
Committed by
Jeremy Mikola
Jun 30, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PHPLIB-108: Use MongoDB\BSON namespace prefix
parent
3e4d54b8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
+5
-5
BulkWriteResult.php
src/BulkWriteResult.php
+1
-1
IndexInput.php
src/Model/IndexInput.php
+1
-1
BulkWriteFunctionalTest.php
tests/Collection/BulkWriteFunctionalTest.php
+2
-2
IndexInputTest.php
tests/Model/IndexInputTest.php
+1
-1
No files found.
src/BulkWriteResult.php
View file @
ffae0553
...
...
@@ -2,7 +2,7 @@
namespace
MongoDB
;
use
BSON\ObjectId
;
use
MongoDB\
BSON\ObjectId
;
use
MongoDB\Driver\WriteResult
;
/**
...
...
src/Model/IndexInput.php
View file @
ffae0553
...
...
@@ -2,7 +2,7 @@
namespace
MongoDB\Model
;
use
BSON\Serializable
;
use
MongoDB\
BSON\Serializable
;
use
MongoDB\Exception\InvalidArgumentException
;
use
MongoDB\Exception\UnexpectedTypeException
;
...
...
tests/Collection/BulkWriteFunctionalTest.php
View file @
ffae0553
...
...
@@ -28,7 +28,7 @@ class BulkWriteFunctionalTest extends FunctionalTestCase
$insertedIds
=
$result
->
getInsertedIds
();
$this
->
assertSame
(
1
,
$insertedIds
[
0
]);
$this
->
assertInstanceOf
(
'BSON\ObjectId'
,
$insertedIds
[
1
]);
$this
->
assertInstanceOf
(
'
MongoDB\
BSON\ObjectId'
,
$insertedIds
[
1
]);
$expected
=
array
(
array
(
'_id'
=>
$insertedIds
[
0
],
'x'
=>
11
),
...
...
@@ -58,7 +58,7 @@ class BulkWriteFunctionalTest extends FunctionalTestCase
$upsertedIds
=
$result
->
getUpsertedIds
();
$this
->
assertSame
(
5
,
$upsertedIds
[
2
]);
$this
->
assertInstanceOf
(
'BSON\ObjectId'
,
$upsertedIds
[
3
]);
$this
->
assertInstanceOf
(
'
MongoDB\
BSON\ObjectId'
,
$upsertedIds
[
3
]);
$expected
=
array
(
array
(
'_id'
=>
1
,
'x'
=>
11
),
...
...
tests/Model/IndexInputTest.php
View file @
ffae0553
...
...
@@ -87,7 +87,7 @@ class IndexInputTest extends TestCase
'ns'
=>
'foo.bar'
,
));
$this
->
assertInstanceOf
(
'BSON\Serializable'
,
$indexInput
);
$this
->
assertInstanceOf
(
'
MongoDB\
BSON\Serializable'
,
$indexInput
);
$this
->
assertEquals
(
$expected
,
$indexInput
->
bsonSerialize
());
}
}
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