Skip to content

Commit

Permalink
Dev: Add note on how to debug failed phpunit run
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Jan 8, 2019
1 parent 35254cb commit befa227
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion application/helpers/update/updatedb_helper.php
Expand Up @@ -4536,6 +4536,7 @@ function runAddPrimaryKeyonAnswersTable400(&$oDB) {
* @param string $table table name (without prefix)
* @param boolean $state Set to true to activate ID insert, or false to deactivate
*/
/*
function switchMSSQLIdentityInsert($table, $state, $oDb = null)
{
$oDb = $oDb === null ? Yii::app()->db : $oDb;
Expand All @@ -4548,4 +4549,5 @@ function switchMSSQLIdentityInsert($table, $state, $oDb = null)
$oDb->pdoInstance->exec( 'SET IDENTITY_INSERT '.$oDb->tablePrefix.$table.' OFF');
}
}
}
}
*/
3 changes: 2 additions & 1 deletion tests/bootstrap.php
Expand Up @@ -251,7 +251,8 @@
$configFile = __DIR__ . '/application/config/config.php';
$configBackupFile = __DIR__ . '/application/config/test-backup.config.php';

error_reporting(E_ALL);
// Enable if phpunit fails.
// error_reporting(E_ALL);

@copy($configFile, $configBackupFile);

Expand Down

0 comments on commit befa227

Please sign in to comment.