Created
July 7, 2016 14:48
-
-
Save oxUnd/2b10839a0dfda7f6d0fa5ca856cf000c to your computer and use it in GitHub Desktop.
fixed PHPUnit 4.8.26 of Laravel
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
cd `pwd` | |
p=' "PHPUnit_TextUI_Command" => '$(find . -name '*.php' | xargs grep 'class PHPUnit_TextUI_Command' | awk -F: '{print $1}' | sed 's/\.\/vendor/$vendorDir . "/')'",' | |
echo $p | |
fixed=`cat vendor/composer/autoload_classmap.php | grep 'PHPUnit_TextUI_Command'` | |
if [ "$fixed" = "" ]; then | |
sed -i "s#PHPUnit_Exception.*#\0\n$p#" vendor/composer/autoload_classmap.php | |
fi | |
echo 'fixed' |
Author
oxUnd
commented
Jul 7, 2016
details test
test test test test
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment