Skip to content

Commit

Permalink
fixed for CakePHP 4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
mirko-pagliai committed Jan 1, 2024
1 parent 2c3cc07 commit 35e4eeb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

0 comments on commit 35e4eeb

Please sign in to comment.