Skip to content

Instantly share code, notes, and snippets.

@mohokh67
Created January 24, 2018 15:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mohokh67/a2881f3e4de139e2f600575e67151dd9 to your computer and use it in GitHub Desktop.
Save mohokh67/a2881f3e4de139e2f600575e67151dd9 to your computer and use it in GitHub Desktop.
Run PHPUnit from PHPStorm

Run PHPUnit from PHPStorm

  1. Under settings dialog, go to test framework (e.g. under PHP language)
  2. Add a test framework
  3. Choose Composer autoloader
  4. Choose vendor/autoload.php
  5. Choose phpunit.xml in the current project for the default configuration file
  • Go to test directory where it contains all the PHPUnit tests, right click and choose run test or do the same on every individual tests file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment