added test for findAndModify if no item in collection and test for eval
This commit is contained in:
@ -245,10 +245,10 @@ class MongoStatementTest extends PHPUnit_Framework_TestCase
|
||||
$this->request
|
||||
->expects($this->once())
|
||||
->method('execute')
|
||||
->will($this->returnValue(array('some' => 'val')));
|
||||
->will($this->returnValue(array('retval' => 'val')));
|
||||
|
||||
$this->stmt->execute();
|
||||
$this->assertFalse($this->stmt->fetch());
|
||||
$this->assertEquals('val', $this->stmt->fetch());
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user