...
- One approach is installing PHPUnit via Composer in PhpStorm.
- Another approach is downloading PHPUnit as a PHAR file and loading the PHAR file in our unit test code.
- And another approach is to install PHPUnit using PEAR but this is an obsolete option for PhpUnit < 5.
Infonote |
---|
To get PHPUnit code completion PHAR file or Composer installation should either be in a project or explicitly included via Include Path. |
...
We can also manually create a test run configuration but that it is often too cumbersome and should be reserved for the advanced PHPUnit test configurations. Once When we create a new PHPUnit run configuration (or edit existing one) we can provide details such as run configuration name, which tests should be run (all tests in a directory, a specific test class or one specific test). Adding test runner arguments or PHP interpreter options is also supported.
...
Finally, you can Rerun the tests (rerunning only . Rerunning failed tests only is also supported).
Info |
---|
See more info about Test Runner Tab at our online help page. |
...