modified classes for GeneralException thrown
This commit is contained in:
@ -16,6 +16,7 @@ require_once dirname(__FILE__) . '/../../model/Db.php';
|
||||
require_once dirname(__FILE__) . '/../../model/DbDriver.php';
|
||||
require_once dirname(__FILE__) . '/../../model/DbStatement.php';
|
||||
require_once dirname(__FILE__) . '/../../model/MongoStatement.php';
|
||||
require_once dirname(__FILE__) . '/../../exception/GeneralException.php';
|
||||
|
||||
class MongoStatementTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
@ -136,7 +137,7 @@ class MongoStatementTest extends PHPUnit_Framework_TestCase
|
||||
|
||||
/**
|
||||
* @runInSeparateProcess
|
||||
* @expectedException Exception
|
||||
* @expectedException GeneralException
|
||||
* @expectedExceptionMessage MongoDB request error.
|
||||
*/
|
||||
public function testExecuteNoResult()
|
||||
@ -154,7 +155,7 @@ class MongoStatementTest extends PHPUnit_Framework_TestCase
|
||||
|
||||
/**
|
||||
* @runInSeparateProcess
|
||||
* @expectedException Exception
|
||||
* @expectedException GeneralException
|
||||
* @expectedExceptionMessage No connection to MongoDB server.
|
||||
*/
|
||||
public function testExecuteNoConnection()
|
||||
@ -283,7 +284,7 @@ class MongoStatementTest extends PHPUnit_Framework_TestCase
|
||||
|
||||
/**
|
||||
* @runInSeparateProcess
|
||||
* @expectedException Exception
|
||||
* @expectedException GeneralException
|
||||
* @expectedExceptionMessage Invalid fetch mode "222" specified
|
||||
*/
|
||||
public function testFetchWrongMode()
|
||||
@ -324,7 +325,7 @@ class MongoStatementTest extends PHPUnit_Framework_TestCase
|
||||
|
||||
/**
|
||||
* @runInSeparateProcess
|
||||
* @expectedException Exception
|
||||
* @expectedException GeneralException
|
||||
* @expectedExceptionMessage MongoStatement error. Impossible order results of opened cursor
|
||||
*/
|
||||
public function testOrderException()
|
||||
@ -344,7 +345,7 @@ class MongoStatementTest extends PHPUnit_Framework_TestCase
|
||||
|
||||
/**
|
||||
* @runInSeparateProcess
|
||||
* @expectedException Exception
|
||||
* @expectedException GeneralException
|
||||
* @expectedExceptionMessage MongoStatement error. Impossible skip results of opened cursor
|
||||
*/
|
||||
public function testSkipException()
|
||||
@ -364,7 +365,7 @@ class MongoStatementTest extends PHPUnit_Framework_TestCase
|
||||
|
||||
/**
|
||||
* @runInSeparateProcess
|
||||
* @expectedException Exception
|
||||
* @expectedException GeneralException
|
||||
* @expectedExceptionMessage MongoStatement error. Impossible limit results of opened cursor
|
||||
*/
|
||||
public function testLimitException()
|
||||
|
Reference in New Issue
Block a user