Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Paste
P299
/usr/local/bin/phpunit
Active
Public
Actions
Authored by
dereckson
on Feb 9 2022, 17:30.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
Development tools
Referenced Files
F1692175: /usr/local/bin/phpunit
Feb 9 2022, 17:30
2022-02-09 17:30:58 (UTC+0)
Subscribers
DorianWinty
#!/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
"$@"
Event Timeline
dereckson
created this paste.
Edited
·
Feb 9 2022, 17:30
2022-02-09 17:30:58 (UTC+0)
Comment Actions
$ arc paste P299
|
sudo tee /usr/local/bin/phpunit $ chmod +x /usr/local/bin/phpunit
Log In to Comment