update install-phpunit.sh so people who read [[Unit_Testing#Installing_PHPUnit|about...
authorMark A. Hershberger <mah@users.mediawiki.org>
Sun, 19 Dec 2010 05:08:21 +0000 (05:08 +0000)
committerMark A. Hershberger <mah@users.mediawiki.org>
Sun, 19 Dec 2010 05:08:21 +0000 (05:08 +0000)
tests/phpunit/install-phpunit.sh

index aca7ace..c0ebd9e 100755 (executable)
@@ -1,5 +1,12 @@
 #!/bin/sh
 
+has_binary () {
+    if [ -z `which $1` ]; then
+        return 1
+    fi
+    return 0
+}
+
 if [ `id -u` -ne 0 ]; then
     echo '*** ERROR' Must be root to run
     exit 1