Replace 0 to false and 1 to true in Config:;set(DEBUG...) in majestic tests.

This commit is contained in:
Alexander Demidov
2012-07-09 13:47:32 +04:00
parent dc60d703bf
commit b6a2c4dbc3
18 changed files with 101 additions and 101 deletions

View File

@ -63,7 +63,7 @@ class MongoStatementTest extends PHPUnit_Framework_TestCase
*/
public function testAffectedNumRowsNoResult()
{
Config::set('DEBUG', 0);
Config::set('DEBUG', false);
$this->assertFalse($this->stmt->affectedRows());
$this->assertFalse($this->stmt->numRows());
@ -82,7 +82,7 @@ class MongoStatementTest extends PHPUnit_Framework_TestCase
*/
public function testAffectedNumRows()
{
Config::set('DEBUG', 0);
Config::set('DEBUG', false);
$this->setDriverGetConnectionMethod();
$this->request
->expects($this->once())
@ -98,7 +98,7 @@ class MongoStatementTest extends PHPUnit_Framework_TestCase
*/
public function testGetInsertId()
{
Config::set('DEBUG', 0);
Config::set('DEBUG', false);
$this->setDriverGetConnectionMethod();
$this->request = $this->getMockBuilder('InsertMongoCommand')
@ -127,7 +127,7 @@ class MongoStatementTest extends PHPUnit_Framework_TestCase
*/
public function testExecute()
{
Config::set('DEBUG', 0);
Config::set('DEBUG', false);
$this->setDriverGetConnectionMethod()->setRequestExecuteMethod();
$this->assertTrue($this->stmt->execute());
@ -139,7 +139,7 @@ class MongoStatementTest extends PHPUnit_Framework_TestCase
*/
public function testExecuteNoResult()
{
Config::set('DEBUG', 0);
Config::set('DEBUG', false);
$this->setDriverGetConnectionMethod();
$this->request
->expects($this->any())
@ -155,7 +155,7 @@ class MongoStatementTest extends PHPUnit_Framework_TestCase
*/
public function testExecuteNoConnection()
{
Config::set('DEBUG', 0);
Config::set('DEBUG', false);
$this->driver
->expects($this->any())
->method('getConnection')
@ -170,7 +170,7 @@ class MongoStatementTest extends PHPUnit_Framework_TestCase
*/
public function testExecuteWithDebug()
{
Config::set('DEBUG', 1);
Config::set('DEBUG', true);
$this->setDriverGetConnectionMethod()->setRequestExecuteMethod();
$this->assertTrue($this->stmt->execute());
$this->assertEquals(10, $this->stmt->numRows());
@ -182,7 +182,7 @@ class MongoStatementTest extends PHPUnit_Framework_TestCase
*/
public function testBindParam()
{
Config::set('DEBUG', 1);
Config::set('DEBUG', true);
$this->request
->expects($this->once())
@ -203,7 +203,7 @@ class MongoStatementTest extends PHPUnit_Framework_TestCase
*/
public function testFetch()
{
Config::set('DEBUG', 1);
Config::set('DEBUG', true);
$this->assertFalse($this->stmt->fetch());
$this->setDriverGetConnectionMethod()->setRequestForFetch();
@ -220,7 +220,7 @@ class MongoStatementTest extends PHPUnit_Framework_TestCase
*/
public function testFetchWithInitialArray()
{
Config::set('DEBUG', 1);
Config::set('DEBUG', true);
$this->assertFalse($this->stmt->fetch());
$this->setDriverGetConnectionMethod();
@ -239,7 +239,7 @@ class MongoStatementTest extends PHPUnit_Framework_TestCase
*/
public function testFetchAssocFromCursor()
{
Config::set('DEBUG', 1);
Config::set('DEBUG', true);
$this->assertFalse($this->stmt->fetch());
$this->setDriverGetConnectionMethod()->setRequestForFetch();
@ -256,7 +256,7 @@ class MongoStatementTest extends PHPUnit_Framework_TestCase
*/
public function testFetchAssocFromArray()
{
Config::set('DEBUG', 1);
Config::set('DEBUG', true);
$this->assertFalse($this->stmt->fetch());
$this->setDriverGetConnectionMethod();
@ -276,7 +276,7 @@ class MongoStatementTest extends PHPUnit_Framework_TestCase
*/
public function testFetchWrongMode()
{
Config::set('DEBUG', 1);
Config::set('DEBUG', true);
$this->assertFalse($this->stmt->fetch());
$this->setDriverGetConnectionMethod();
@ -296,7 +296,7 @@ class MongoStatementTest extends PHPUnit_Framework_TestCase
*/
public function testSkipOrderLimit()
{
Config::set('DEBUG', 1);
Config::set('DEBUG', true);
$this->setDriverGetConnectionMethod()->setRequestForFetch();
$this->stmt->execute();
@ -314,7 +314,7 @@ class MongoStatementTest extends PHPUnit_Framework_TestCase
*/
public function testCount()
{
Config::set('DEBUG', 1);
Config::set('DEBUG', true);
$this->setDriverGetConnectionMethod()->setRequestForFetch();
$this->stmt->execute();
@ -329,7 +329,7 @@ class MongoStatementTest extends PHPUnit_Framework_TestCase
*/
public function testCountException()
{
Config::set('DEBUG', 1);
Config::set('DEBUG', true);
$this->setDriverGetConnectionMethod();
$this->request
->expects($this->once())
@ -347,7 +347,7 @@ class MongoStatementTest extends PHPUnit_Framework_TestCase
*/
public function testOrderException()
{
Config::set('DEBUG', 1);
Config::set('DEBUG', true);
$this->setDriverGetConnectionMethod();
$this->request
->expects($this->once())
@ -365,7 +365,7 @@ class MongoStatementTest extends PHPUnit_Framework_TestCase
*/
public function testSkipException()
{
Config::set('DEBUG', 1);
Config::set('DEBUG', true);
$this->setDriverGetConnectionMethod();
$this->request
->expects($this->once())
@ -383,7 +383,7 @@ class MongoStatementTest extends PHPUnit_Framework_TestCase
*/
public function testLimitException()
{
Config::set('DEBUG', 1);
Config::set('DEBUG', true);
$this->setDriverGetConnectionMethod();
$this->request
->expects($this->once())