2014-03-03 17:50

Sublime Text 3 PHP UNIT


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.

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答


  • dp518158 dp518158 4年前

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


    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

    点赞 评论 复制链接分享
  • dongxie8856 dongxie8856 7年前

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

    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!

    点赞 评论 复制链接分享
  • ds000001 ds000001 4年前

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


    • 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


    点赞 评论 复制链接分享