Oliver Davies
a85ff2e8bb
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.
9 lines
99 B
Bash
Executable file
9 lines
99 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
if [[ -f "vendor/bin/pest" ]]; then
|
|
echo "pest"
|
|
exit 0
|
|
fi
|
|
|
|
echo "phpunit"
|