dotfiles/bin/phpunit-or-pest
Oliver Davies a85ff2e8bb Run phpunit or pest depending on the project
Remove the `p` and `pf` aliases that previously only worked for PHPUnit,
and re-add them as functions that run either PHPUnit or Pest PHP based
on the project dependencies.

The checking is done within the `phpunit-or-pest` script and then used
within the new `p` and `pf` functions.
2020-07-23 16:24:23 +01:00

9 lines
99 B
Bash
Executable file

#!/usr/bin/env bash
if [[ -f "vendor/bin/pest" ]]; then
echo "pest"
exit 0
fi
echo "phpunit"