PHPUnit Min ver PHPUnit Max ver CakePHP 2.10 5.3 7.* 3.7 5.7.* CakePHP 3.8 5.6 7.* 5.7.14 6.5 CakePHP 4 7.2 7.* 8.3.3 •CakePHP2.10 -> CakePHP4 ◦Cannot use same version
PHPUnit Min ver PHPUnit Max ver CakePHP 2.10 5.3 7.* 3.7 5.7.* CakePHP 3.8 5.6 7.* 5.7.14 6.5 CakePHP 4 7.2 7.* 8.3.3 •CakePHP3.8 -> CakePHP4 ◦Cannot use same version
Error: include(PHPUnit/Autoload.php): failed to open stream: No such file or directory in [/var/www/lancers/cake28/Vendor/cakephp/cakephp/lib/Cake/TestSuite/CakeTestSuiteDispatcher.php, line 178] Warning Error: include(): Failed opening 'PHPUnit/Autoload.php' for inclusion (include_path='/var/www/lancers/vendor/phpunit/phpunit:/var/www/lancers/cake28/Vendor/cakephp/cak ephp/lib:/var/www/lancers/cake28/Vendor/cakephp/cakephp/lib:.:/usr/share/pear:/usr/share/php') in [/var/www/lancers/cake28/Vendor/cakephp/cakephp/lib/Cake/TestSuite/CakeTestSuiteDispatcher.php, line 178] Error: Please install PHPUnit framework v3.7 (http://www.phpunit.de) #0 /var/www/lancers/cake28/Vendor/cakephp/cakephp/lib/Cake/Console/ShellDispatcher.php(221): TestShell->initialize() #1 /var/www/lancers/cake28/Vendor/cakephp/cakephp/lib/Cake/Console/ShellDispatcher.php(66): ShellDispatcher->dispatch() #2 /var/www/lancers/cake28/Console/cake.php(56): ShellDispatcher::run(Array) #3 {main} $ •Execute by cake command
PHP Fatal error: Declaration of Cake¥TestSuite¥TestCase::setUp() must be compatible with PHPUnit¥Framework¥TestCase::setUp(): void in /var/www/lancers/vendor/cakephp/cakephp/src/TestSuite/TestCase.php on line 35 PHP Stack trace: PHP 1. {main}() /var/www/lancers/vendor/phpunit/phpunit/phpunit:0 PHP 2. PHPUnit¥TextUI¥Command::main() /var/www/lancers/vendor/phpunit/phpunit/phpunit:61 PHP 3. PHPUnit¥TextUI¥Command->run() … PHP 13. include() /var/www/lancers/vendor/composer/ClassLoader.php:444 $ •Execute by phpunit command ◦Requires return type declarations