From 5917c3a599a947b91bf69fa986f5b107db71f804 Mon Sep 17 00:00:00 2001
From: "Meredith L. Patterson" <mlp@thesmartpolitenerd.com>
Date: Sat, 23 Nov 2013 12:45:21 -0600
Subject: [PATCH] phpunit is now running the tests, we just need to get them
 into build/opt/src.

---
 src/bindings/php/SConscript | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bindings/php/SConscript b/src/bindings/php/SConscript
index 7e86159a..a7fdb5de 100644
--- a/src/bindings/php/SConscript
+++ b/src/bindings/php/SConscript
@@ -17,7 +17,7 @@ Default(swig_src, bindings_src, libhammer_php)
 phptestenv = phpenv.Clone()
 phptestenv['ENV']['LD_LIBRARY_PATH'] = os.path.dirname(str(libhammer_shared[0]))
 phptests = ['Tests']
-testphp = phptestenv.Alias("testphp", phptestenv.Command(phptests, [libhammer_php], "phpunit -v --include-path "+os.getcwd()+" $TARGET"))
+testphp = phptestenv.Alias("testphp", phptestenv.Command(phptests, [libhammer_php], "phpenv exec phpunit -v --include-path "+os.getcwd()+" $TARGET"))
 env['testruns'].append(testphp)
 print "Testing: " + str([str(x[0]) for x in env['testruns']])
 
-- 
GitLab