From 35e4eeb003b94ff8bf4a986de40e3c38dd6d2fc3 Mon Sep 17 00:00:00 2001 From: mirko-pagliai Date: Mon, 1 Jan 2024 19:12:15 +0100 Subject: [PATCH] fixed for CakePHP 4.3 --- tests/bootstrap.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 873415d..fa8f043 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -71,3 +71,13 @@ ]); $_SERVER['PHP_SELF'] = '/'; + +/** + * @todo These are to be removed with CakePHP >= 4.4 + */ +if (!trait_exists('Cake\Console\TestSuite\ConsoleIntegrationTestTrait')) { + class_alias('Cake\TestSuite\ConsoleIntegrationTestTrait', 'Cake\Console\TestSuite\ConsoleIntegrationTestTrait'); +} +if (!class_exists('Cake\Console\TestSuite\StubConsoleOutput')) { + class_alias('Cake\TestSuite\Stub\ConsoleOutput', 'Cake\Console\TestSuite\StubConsoleOutput'); +}