Commit ffae0553 authored by Derick Rethans's avatar Derick Rethans Committed by Jeremy Mikola

PHPLIB-108: Use MongoDB\BSON namespace prefix

parent 3e4d54b8
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
namespace MongoDB; namespace MongoDB;
use BSON\ObjectId; use MongoDB\BSON\ObjectId;
use MongoDB\Driver\WriteResult; use MongoDB\Driver\WriteResult;
/** /**
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
namespace MongoDB\Model; namespace MongoDB\Model;
use BSON\Serializable; use MongoDB\BSON\Serializable;
use MongoDB\Exception\InvalidArgumentException; use MongoDB\Exception\InvalidArgumentException;
use MongoDB\Exception\UnexpectedTypeException; use MongoDB\Exception\UnexpectedTypeException;
......
...@@ -28,7 +28,7 @@ class BulkWriteFunctionalTest extends FunctionalTestCase ...@@ -28,7 +28,7 @@ class BulkWriteFunctionalTest extends FunctionalTestCase
$insertedIds = $result->getInsertedIds(); $insertedIds = $result->getInsertedIds();
$this->assertSame(1, $insertedIds[0]); $this->assertSame(1, $insertedIds[0]);
$this->assertInstanceOf('BSON\ObjectId', $insertedIds[1]); $this->assertInstanceOf('MongoDB\BSON\ObjectId', $insertedIds[1]);
$expected = array( $expected = array(
array('_id' => $insertedIds[0], 'x' => 11), array('_id' => $insertedIds[0], 'x' => 11),
...@@ -58,7 +58,7 @@ class BulkWriteFunctionalTest extends FunctionalTestCase ...@@ -58,7 +58,7 @@ class BulkWriteFunctionalTest extends FunctionalTestCase
$upsertedIds = $result->getUpsertedIds(); $upsertedIds = $result->getUpsertedIds();
$this->assertSame(5, $upsertedIds[2]); $this->assertSame(5, $upsertedIds[2]);
$this->assertInstanceOf('BSON\ObjectId', $upsertedIds[3]); $this->assertInstanceOf('MongoDB\BSON\ObjectId', $upsertedIds[3]);
$expected = array( $expected = array(
array('_id' => 1, 'x' => 11), array('_id' => 1, 'x' => 11),
......
...@@ -87,7 +87,7 @@ class IndexInputTest extends TestCase ...@@ -87,7 +87,7 @@ class IndexInputTest extends TestCase
'ns' => 'foo.bar', 'ns' => 'foo.bar',
)); ));
$this->assertInstanceOf('BSON\Serializable', $indexInput); $this->assertInstanceOf('MongoDB\BSON\Serializable', $indexInput);
$this->assertEquals($expected, $indexInput->bsonSerialize()); $this->assertEquals($expected, $indexInput->bsonSerialize());
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment