Skip to content

Commit

Permalink
test: fix missing cache result file parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
rimelek committed Mar 19, 2023
1 parent bd8b11a commit 931ec5a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions php/bin/php.sh
Expand Up @@ -28,7 +28,6 @@ declare -A PHP_XDEBUG_VERSIONS=(
XDEBUG_VERSION="${PHP_XDEBUG_VERSIONS[$PHP_VERSION]}"
PROJECT_ROOT="$(cd "$CURR_DIR/../.." && pwd)"
PHP_UNIT_PATH="$PROJECT_ROOT/php/bin/phpunit.php"
PHP_UNIT_XML="$PROJECT_ROOT/php/phpunit/phpunit.xml"
PHP_UNIT_XML_CACHE_DIR="$PROJECT_ROOT/php/phpunit"

ARGS=("$@")
Expand Down Expand Up @@ -75,7 +74,7 @@ function arg_exists() {
}

if arg_exists "$PHP_UNIT_PATH" \
&& arg_value_is "--configuration" "$PHP_UNIT_XML"; then
&& arg_exists "--configuration"; then
mkdir -p "$PHP_UNIT_XML_CACHE_DIR"
if [[ "$PHP_VERSION" != "7.0" ]] && [[ "$PHP_VERSION" != "5.6" ]]; then
arg_value_set "--cache-result-file" "$PHP_UNIT_XML_CACHE_DIR/.phpunit.result.php-$PHP_VERSION.cache"
Expand Down

0 comments on commit 931ec5a

Please sign in to comment.