我使用Symfony2在PHPUnit上出错
在我的测试用例中我导入:
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
Run Code Online (Sandbox Code Playgroud)
但是,当我执行它时,我得到:
PHP Fatal error: Class 'Symfony\Bundle\FrameworkBundle\Test\WebTestCase' not found in C:\trabajo\web\Company\src\Company\WebBundle\Tests\dbTest.php on line 11
Run Code Online (Sandbox Code Playgroud)
我用来执行它:
phpunit -c app/src/Company/WebBundle/Tests/dbTest
有帮助吗?
提前致谢.