php - PHPUnit Skeleton Generator: Fatal error: Class 'SebastianBergmann\PHPUnit\SkeletonGenerator\CLI\Application' not found -
i'm trying use skeleton generator every time try use receive error below:
fatal error: class 'sebastianbergmann\phpunit\skeletongenerator\cli\application' not found in [path_to_project]/vendor/phpunit/phpunit-skeleton-generator/phpunit-skelgen on line 63
the context
i've installed skeletongenerator through composer.
the not found class in reality exists in path /vendor/phpunit/phpunit-skeleton-generator/src/cli/application
i don't understand why class exists isn't seen.
what can solve problem? related autoloading of packages composer?
github issue: https://github.com/sebastianbergmann/phpunit-skeleton-generator/issues/46
a place start line in phpunit-skelgen file:
foreach (array(__dir__ . '/../../autoload.php', __dir__ . '/vendor/autoload.php') $file) {
make sure autoload.php file(s) referred exist. way test add like:
echo __dir__ . '/../../autoload.php' . "\n";
...before foreach loop , see if spits out in file system. using laravel 5, , autoload.php located in directory called "bootstrap". changed this:
foreach (array(__dir__.'/../bootstrap/autoload.php', __dir__ . '/../vendor/autoload.php') $file) {
...and able take things next step (still not able generate skeleton test, there other issues).
Comments
Post a Comment