【发布时间】:2015-03-17 20:32:59
【问题描述】:
我正在尝试使用 Skeleton Generator,但每次我尝试使用它时都会收到以下错误:
Fatal error: Class 'SebastianBergmann\PHPUnit\SkeletonGenerator\CLI\Application' not found in [path_to_project]/vendor/phpunit/phpunit-skeleton-generator/phpunit-skelgen on line 63
背景
我已经通过 Composer 安装了 SkeletonGenerator。
现实中找不到的类存在路径/vendor/phpunit/phpunit-skeleton-generator/src/CLI/Application
我不明白为什么这个类存在但它没有被看到。
我能做些什么来解决这个问题?和composer自动加载包有关系吗?
GitHub 问题:https://github.com/sebastianbergmann/phpunit-skeleton-generator/issues/46
【问题讨论】:
-
请发布您的代码以显示您如何调用此类。您是否使用
use ...;行来导入该类? -
代码?我使用终端,例如 > php /[path_to_project]/vendor/bin/phpunit-skelgen --test ClassName /[path_to_project]/[path_to_file]/class.php
-
同时我也在 GitHub 上为此开了一张票:github.com/sebastianbergmann/phpunit-skeleton-generator/issues/…