Skip to content

Instantly share code, notes, and snippets.

@oxUnd
Created July 7, 2016 14:48
Show Gist options
  • Save oxUnd/2b10839a0dfda7f6d0fa5ca856cf000c to your computer and use it in GitHub Desktop.
Save oxUnd/2b10839a0dfda7f6d0fa5ca856cf000c to your computer and use it in GitHub Desktop.
fixed PHPUnit 4.8.26 of Laravel
#!/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'
@oxUnd
Copy link
Author

oxUnd commented Jul 13, 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