|
|
@ -151,6 +151,9 @@ class MongoDbCommandTest extends PHPUnit_Framework_TestCase |
|
|
|
|
|
|
|
$this->assertArrayHasKey('n', $cmd->execute()); |
|
|
|
|
|
|
|
$cmd->bindParam('data', array()); |
|
|
|
$cmd->execute(); |
|
|
|
|
|
|
|
$cmd = MongoCommandBuilder::factory(MongoCommandBuilder::FIND, $this->collection); |
|
|
|
$cmd->bindParam('condition', array('name' => 'first object'))->bindParam('fields', array()); |
|
|
|
$result = $cmd->execute(); |
|
|
@ -161,6 +164,8 @@ class MongoDbCommandTest extends PHPUnit_Framework_TestCase |
|
|
|
$cmd->bindParam('condition', array('name' => 'equal object'))->bindParam('fields', array()); |
|
|
|
$result = $cmd->execute(); |
|
|
|
$this->assertEquals(2, $result->count()); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|