If you’re using Sublime Text 2 w/ my PHPUnit plugin, but you have phpunit installed into a non-standard place (i.e., it isn’t installed into your system path), then keep reading – this change is for you.

You can now tell the PHPUnit plugin where to find phpunit, by adding the following to your PHPUnit.sublime-settings file:

{
    "path_to_phpunit": "/Users/stuart/build/pear/phpunit"
}

3 Comments

  1. KdgDev says:
    September 8th, 2012 at 12:40 am

    Still busy setting everything up casually, so I’ll just ask before I get there: will this work on Windows?

    Using PEAR as described in another post by you: http://blog.stuartherbert.com/php/2012/05/10/getting-pear-working-on-windows-7/

  2. Stuart Herbert says:
    September 9th, 2012 at 9:04 pm

    Yes, it should work on Windows.

  3. Sonny says:
    November 26th, 2012 at 10:05 pm

    When we enter the path to PHPUnit, where do we start from?

    C:/wamp/bin/php/php5.3.9/includes/PHPUnit3.7.9/PHPUnit

    or

    Path/from/sublime.exe/to/PHPUnit

    Here is what I currently have and it will not work. I’ve tried several variations. I’m just too new to PHPUnit and Sublime.