Skip to content

Instantly share code, notes, and snippets.

@sorokadima
Created May 11, 2020 15:48
Show Gist options
  • Save sorokadima/5b2bb57e96fb9eaf4662f353ba121e40 to your computer and use it in GitHub Desktop.
Save sorokadima/5b2bb57e96fb9eaf4662f353ba121e40 to your computer and use it in GitHub Desktop.
Yii2 tests (run test Yii2, codecept, codeception, phpunit, php unit, php-unit)

codecept

vendor/bin/codecept run unit

php-unit

run single test vendor/bin/phpunit --filter testActionIndexMyFormSubmit tests/unit/MyControllerTest.php

vendor/bin/phpunit tests/unit/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment