From baad243f1bcb8c09b0c7d8757f08aedf61ac68c6 Mon Sep 17 00:00:00 2001 From: mirko-pagliai Date: Wed, 8 Feb 2023 17:53:38 +0100 Subject: [PATCH] fixed --- tests/bootstrap.php | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/tests/bootstrap.php b/tests/bootstrap.php index d467950..289b808 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -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'; @@ -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'); -}