简体   繁体   中英

Having phpUnit debug configuration to test the current file in phpStorm

I like to have a debug configuration, that allows me to test the current file. In every project it is the same, so I like to put variables in these fields:

调试配置

So when I am within a test I like to click "Debug" and it runs phpunit /my/current/test.php using the given phpunit config.

How to do that?

  • Choose "Run" > "Edit configurations".
  • Open "Defaults" and choose the scenario you want
  • Place some default stuff there

Run a test using CTRL+SHIFT+F10 (in Ubuntu Gnome). It will use the default setup on the current focues file.

phpStorm详细信息,您可以尝试一下

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM