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 @@
namespace MongoDB;
use BSON\ObjectId;
use MongoDB\BSON\ObjectId;
use MongoDB\Driver\WriteResult;
/**
......
......@@ -2,7 +2,7 @@
namespace MongoDB\Model;
use BSON\Serializable;
use MongoDB\BSON\Serializable;
use MongoDB\Exception\InvalidArgumentException;
use MongoDB\Exception\UnexpectedTypeException;
......
......@@ -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),
......
......@@ -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());
}
}
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