Replace 0 to false and 1 to true in Config:;set(DEBUG...) in majestic tests.
This commit is contained in:
@ -83,7 +83,7 @@ class MySQLiStatementTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testExecute()
|
||||
{
|
||||
Config::set('DEBUG', 0);
|
||||
Config::set('DEBUG', false);
|
||||
|
||||
$this->driver
|
||||
->expects($this->any())
|
||||
@ -102,7 +102,7 @@ class MySQLiStatementTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testExecuteNoPlaceholders()
|
||||
{
|
||||
Config::set('DEBUG', 0);
|
||||
Config::set('DEBUG', false);
|
||||
$this->setDriverGetConnectionMethod();
|
||||
|
||||
$this->sql = 'PLAIN SQL';
|
||||
@ -116,7 +116,7 @@ class MySQLiStatementTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testFetchNoResult()
|
||||
{
|
||||
Config::set('DEBUG', 0);
|
||||
Config::set('DEBUG', false);
|
||||
$this->assertFalse($this->stmt->fetch());
|
||||
}
|
||||
|
||||
@ -126,7 +126,7 @@ class MySQLiStatementTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testDriverExecuteNoResult()
|
||||
{
|
||||
Config::set('DEBUG', 0);
|
||||
Config::set('DEBUG', false);
|
||||
$this->setDriverGetConnectionWrongResultMethod();
|
||||
$this->setExpectedException('GeneralException', 'ERROR');
|
||||
$this->stmt->execute(array('place' => 'place_val', 'new' => 'new_val'));
|
||||
@ -138,7 +138,7 @@ class MySQLiStatementTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testFetch()
|
||||
{
|
||||
Config::set('DEBUG', 0);
|
||||
Config::set('DEBUG', false);
|
||||
$this->setDriverGetConnectionMethod();
|
||||
$this->stmt->execute(array('place' => 'place_val', 'new' => 'new_val'));
|
||||
$this->assertSame('OBJECT', $this->stmt->fetch());
|
||||
@ -153,7 +153,7 @@ class MySQLiStatementTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testFetchObject()
|
||||
{
|
||||
Config::set('DEBUG', 0);
|
||||
Config::set('DEBUG', false);
|
||||
$this->setDriverGetConnectionMethod();
|
||||
$this->stmt->execute(array('place' => 'place_val', 'new' => 'new_val'));
|
||||
$this->assertSame('OBJECT', $this->stmt->fetchObject());
|
||||
@ -165,7 +165,7 @@ class MySQLiStatementTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testFetchPairs()
|
||||
{
|
||||
Config::set('DEBUG', 0);
|
||||
Config::set('DEBUG', false);
|
||||
|
||||
$resultMock = $this->getMockBuilder('mysqli_result')
|
||||
->disableOriginalConstructor()
|
||||
@ -220,7 +220,7 @@ class MySQLiStatementTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testClose()
|
||||
{
|
||||
Config::set('DEBUG', 0);
|
||||
Config::set('DEBUG', false);
|
||||
$this->assertAttributeEquals(null, 'result', $this->stmt);
|
||||
$this->setDriverGetConnectionMethod();
|
||||
$this->stmt->execute(array('place' => 'place_val', 'new' => 'new_val'));
|
||||
@ -261,7 +261,7 @@ class MySQLiStatementTest extends PHPUnit_Framework_TestCase
|
||||
public function testNumRows()
|
||||
{
|
||||
$this->markTestSkipped('Unable to execute a method or access a property of an incomplete object.');
|
||||
Config::set('DEBUG', 0);
|
||||
Config::set('DEBUG', false);
|
||||
$this->setDriverGetConnectionMethod();
|
||||
$this->stmt->execute(array('place' => 'place_val', 'new' => 'new_val'));
|
||||
$this->assertNull($this->stmt->numRows());
|
||||
@ -273,7 +273,7 @@ class MySQLiStatementTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
public function testFetchInvalidMode()
|
||||
{
|
||||
Config::set('DEBUG', 0);
|
||||
Config::set('DEBUG', false);
|
||||
$this->setDriverGetConnectionMethod();
|
||||
$this->stmt->execute(array('place' => 'place_val', 'new' => 'new_val'));
|
||||
|
||||
|
Reference in New Issue
Block a user