Skip to content

Commit

Permalink
Merge pull request #48 from mirko-pagliai/develop
Browse files Browse the repository at this point in the history
fixed
  • Loading branch information
mirko-pagliai authored Feb 8, 2023
2 parents b3fb602 + baad243 commit db1bf6e
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,10 @@
define('CONFIG', APP . 'config' . DS);
define('LOGS', TMP . 'logs' . DS);
define('SESSIONS', TMP . 'sessions' . DS);
@mkdir(TMP);
@mkdir(LOGS);
@mkdir(SESSIONS);
@mkdir(CACHE);
@mkdir(CACHE . 'views');
@mkdir(CACHE . 'models');

foreach ([TMP, LOGS, SESSIONS, CACHE,CACHE . 'views', CACHE . 'models'] as $dir) {
mkdir($dir);
}

require dirname(__DIR__) . '/vendor/autoload.php';
require CORE_PATH . 'config' . DS . 'bootstrap.php';
Expand Down Expand Up @@ -73,10 +71,3 @@
]);

$_SERVER['PHP_SELF'] = '/';

/**
* @todo To be removed in a later version
*/
if (!class_exists('Cake\Console\TestSuite\StubConsoleOutput')) {
class_alias('Cake\TestSuite\Stub\ConsoleOutput', 'Cake\Console\TestSuite\StubConsoleOutput');
}

0 comments on commit db1bf6e

Please sign in to comment.