diff --git a/src/bindings/php/SConscript b/src/bindings/php/SConscript index 7e86159a56f6d1e98974bc75d08f9078d3629275..a7fdb5dedfac4625ba109f2346a0ea35c5eed3cb 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']])