Skip to content

Commit

Permalink
Dev: PSR-2
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Jan 8, 2019
1 parent ea32574 commit 3075d4a
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -251,12 +251,16 @@
$configFile = __DIR__ . '/application/config/config.php';
$configBackupFile = __DIR__ . '/application/config/test-backup.config.php';

error_reporting(E_ALL);

@copy($configFile, $configBackupFile);

register_shutdown_function(function(){
$configFile = __DIR__ . '/application/config/config.php';
$configBackupFile = __DIR__ . '/application/config/test-backup.config.php';

@unlink($configFile);
@rename($configBackupFile, $configFile);
});
register_shutdown_function(
function () {
$configFile = __DIR__ . '/application/config/config.php';
$configBackupFile = __DIR__ . '/application/config/test-backup.config.php';

@unlink($configFile);
@rename($configBackupFile, $configFile);
}
);

0 comments on commit 3075d4a

Please sign in to comment.