From 83ceaf50c13a5fa852363732f08650e986d6c617 Mon Sep 17 00:00:00 2001 From: Maher Sallam Date: Tue, 3 Jan 2012 16:47:38 +0100 Subject: [PATCH] Check for the phpunit command in a more efficient way --- lib/guard/phpunit/runner.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/guard/phpunit/runner.rb b/lib/guard/phpunit/runner.rb index 83bde28..1a9022b 100644 --- a/lib/guard/phpunit/runner.rb +++ b/lib/guard/phpunit/runner.rb @@ -46,7 +46,7 @@ def run(paths, options = {}) # @return [Boolean] The status of phpunit # def phpunit_exists? - system('which phpunit > /dev/null 2>&1') + system('hash', 'phpunit') end # Executes the testing command on the tests