bin/test
Rama master · réplica de lectura del repositorio original.
#!/usr/bin/env bash
# This script executes the php unit tests as a web user
set -euo pipefail
FILTER="${1:-all}"
user="${2:-www-data}"
DIR=$(dirname "$(readlink -f "$0")")
# shellcheck source=utils.sh
# shellcheck disable=SC1091
source "$DIR"/utils.sh
if [[ "$FILTER" == "all" ]]; then
run_as "$DIR/../vendor/bin/phpunit --stop-on-failure --stop-on-error" "$user"
else
run_as "$DIR/../vendor/bin/phpunit --filter=$FILTER --stop-on-failure --stop-on-error" "$user"
fi