# install php-cs-fixer
composer global require friendsofphp/php-cs-fixer ^2.0.0
# go to the project's root directory, but NOT the tests subdirectory
cd <project_dir>
# install dependencies
composer update
# check coding style
php-cs-fixer fix --dry-run
# fix coding style
php-cs-fixer fix
# run tests
sh ./tests/run.sh
You can use these commands to do more specific tasks.
# generate necessary files to run the tests
./vendor/bin/codecept build
# run all tests
./vendor/bin/codecept run
# run the specific suite
./vendor/bin/codecept run <suite>
# run specific test
./vendor/bin/codecept run <file>