diff --git a/tests/before_script.sh b/tests/before_script.sh index 562f2f2..e670788 100755 --- a/tests/before_script.sh +++ b/tests/before_script.sh @@ -1,3 +1,9 @@ +SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +cd "${SCRIPT_DIR}" + +# Use composer's phpunit and phpcs by adding composer bin directory to the path environment variable. +export PATH="${PWD}/vendor/bin:${PATH}" + remove_expectWarning() { # Fix "Call to undefined method CurlTest\CurlTest::expectWarning()". sed -i'' -e"/->expectWarning(/d" "$(pwd)/tests/PHPCurlClass/PHP"*