Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'master' of github.com:stuartherbert/sublime-phpunit

  • Loading branch information...
commit bd787f519b2380039354101eadd64d00a2163f1b 2 parents c183743 + 93c2cd0
@stuartherbert authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 phpunit.py
View
6 phpunit.py
@@ -19,6 +19,7 @@ def load():
Prefs.phpunit_xml_location_hints = settings.get('phpunit_xml_location_hints', [])
Prefs.phpunit_additional_args = settings.get('phpunit_additional_args', {})
Prefs.debug = settings.get('debug', 0)
+ Prefs.path_to_phpunit = settings.get('path_to_phpunit', False)
Prefs.load()
@@ -168,7 +169,10 @@ class PhpunitCommand(CommandBase):
def run(self, path, testfile='', classname=''):
self.show_empty_output()
- args = ["phpunit"]
+ if Prefs.path_to_phpunit is not False:
+ args = [Prefs.path_to_phpunit]
+ else:
+ args = ["phpunit"]
# Add the additional arguments from the settings file to the command
for key, value in Prefs.phpunit_additional_args.items():
Please sign in to comment.
Something went wrong with that request. Please try again.