Sublime Text 3 PHP UNIT

拜拜、爱过 提交于 2019-12-23 15:07:20

问题


In Sublime Text 3 PHP Unit doesn't work. Bundle has installed correctly but plugin is inactive. Has anyone resolved the problem?

Thanks in advance.


回答1:


I strongly suggest you to use this package which isn't available on Package Control:

Sublime-PHPUnit

You need to pull this in manually by navigating to ~/Library/Application Support/Sublime Text 3/Packages and paste it in. If you setup a few key binding, the workflow is very snappy. Watch this video for more info:

Instant PHPUnit Feedback and Workflow




回答2:


At the time of writing, there is a working ST3 version in the develop branch:

https://github.com/stuartherbert/sublime-phpunit/tree/develop

I got it to work by cloning the develop branch into my {ST3}/Packages folder and then restarting ST3.

At the time when I installed the plugin (a couple of months ago), the ST3 compatible version of sublime-phpunit was not available through Package Control, which is why I installed it with git.

Hope this helps!




回答3:


Try PHPUnitKit, a Sublime Text plugin for running tests on different granularities. It's available on Package Control!

FEATURES

  • Run Test File
  • Run Test Suite
  • Run Nearest Test
  • Run Last Test
  • Fully customisable configuration
  • Supports Composer installed PHPUnit
  • Supports colour results, diffs, errors, etc.
  • Jump to next and jump to previous failure



来源:https://stackoverflow.com/questions/22153731/sublime-text-3-php-unit

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!