In earlier versions, it was possible to debug any unit test within functionality provided by PHPStorm. How should I run debug session on a particular test using vendor/bin/simple-phpunit?
1 Answer
It's a bit hidden right now.
- Run
vendor/bin/simple-phpunitto fetch some not-so-visible dependencies, - Setup a new test framework within PHPStorm using this path:
/vendor/bin/.phpunit/phpunit-5.7/phpunitwithpath to composer.pharchecked. Keep in mind not to forget specifyingphpunit.xmlas default configuration to provide autoloaders, - All now works.
Setings -> Languages & frameworks -> PHP -> Test frameworksto simple-phpunit.phpunit) directory insidevendor.simple-phpunitstarts an another sub-process so debugging is weird. Still working on this.