Skip to content
This is the documentation for pieceofcake2/cakephp, a community-maintained fork of CakePHP 2.x for PHP 8. About this fork.

Test shell ​

Once you've started writing Tests you can run them using the test shell:

bin/cake test app AllTests

The test shell runs PHPUnit 9.6, which you install as a development dependency with Composer (composer require --dev phpunit/phpunit:^9.6). The pieceofcake2/app skeleton already includes it, and you can also run the tests with vendor/bin/phpunit.

For more information on basic usage of the test shell see Run Tests From Command Line.

Changed in version 2.1

The test shell was added in 2.1. The 2.0 testsuite shell is still available but the new syntax is preferred.

Based on the CakePHP Cookbook. Content licensed under CC BY-NC-SA 4.0. Not affiliated with the Cake Software Foundation.