Skip to content

Commit

Permalink
[1.x] Add phpunit alias to sail binary (#310)
Browse files Browse the repository at this point in the history
* add phpunit alias to sail binary

* Update sail

Co-authored-by: Taylor Otwell <taylor@laravel.com>
  • Loading branch information
Bram and taylorotwell committed Jan 7, 2022
1 parent 634fe87 commit 5365296
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions bin/sail
Expand Up @@ -154,6 +154,19 @@ if [ $# -gt 0 ]; then
sail_is_not_running
fi

# Proxy the "phpunit" command to "php vendor/bin/phpunit"...
elif [ "$1" == "phpunit" ]; then
shift 1

if [ "$EXEC" == "yes" ]; then
docker-compose exec \
-u sail
"$APP_SERVICE" \
php vendor/bin/phpunit "$@"
else
sail_is_not_running
fi

# Proxy the "dusk" command to the "php artisan dusk" Artisan command...
elif [ "$1" == "dusk" ]; then
shift 1
Expand Down

0 comments on commit 5365296

Please sign in to comment.