Page MenuHomeDevCentral

/usr/local/bin/phpunit

Authored By
dereckson
Feb 9 2022, 17:30
Size
280 B
Referenced Files
None
Subscribers
None

/usr/local/bin/phpunit

#!/bin/sh
# Case 1 - phpunit from Composer
if [ -f vendor/bin/phpunit ]; then
echo "Switching to Composer phpunit:"
PHPUNIT=vendor/bin/phpunit
elif [ -f /opt/phpunit ]; then
PHPUNIT=/opt/phpunit
else
echo "No phpunit has been found."
exit 1
fi
$PHPUNIT "$@"

File Metadata

Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
930988
Default Alt Text
/usr/local/bin/phpunit (280 B)

Event Timeline