Domanda

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.

È stato utile?

Soluzione

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

Altri suggerimenti

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!

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

PHPUnitKit

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top