PHP Fatal error: Call to undefined method ComposerAutoloadClassLoader::setPsr4() in /Users/pmjones/Code/auraphp/develop-2-projects/Aura.Project_Kernel/cli-project/vendor/composer/autoload_real.php on line 38
Even after a
composer self-update the problem remained.
It turns out the problem was related to having issued
composer global require
phpunit/phpunit=3.7.*. The various Composer global vendor files were
overriding the local ones in the project. I discovered this only by calling
var_dump(get_included_files()) in the project-specific
I ended up deleting
~/.composer (the global Composer location) and
re-installing PHPUnit, but looking back on it,
composer global update would have solved the problem as
UPDATE: Christophe Coevet in the comments indicates
global dump-autoload would have done the trick as well.