From aaa70179ea17af14c03d08cf3037fe62765faafd Mon Sep 17 00:00:00 2001 From: Zach Borboa Date: Thu, 10 Jun 2021 11:34:53 -0400 Subject: [PATCH] Fix path to PHPUnit binary --- tests/before_script.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/before_script.sh b/tests/before_script.sh index cddbecb..4832265 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}" + install_nginx() { $superuser apt-get install -y nginx }