![](/img/trans.png)
[英]I'm trying to password protect my website and when i get the popup to login and i use my creds
[英]I'm trying to use KernetTestKase in my unit tests, but I get a “not found” error
我正在尝试遵循一些示例,这些示例使用KernetTestCase进行涉及数据库的Symfony 2测试。
我收到此错误:
Fatal error: Class 'Symfony\\Bundle\\FrameworkBundle\\Test\\KernelTestCase' not found in...
在我的测试文件中,我有:
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
和
class AcmeContestTest extends KernelTestCase
但是在运行测试时我仍然收到上面的错误...
我发现我正在使用的Symfony 2.3版没有从WebTestCase中提取KernelTestCase,因为Symfony 2.5版具有...
供参考,请查看: https : //github.com/symfony/symfony/tree/master/src/Symfony/Bundle/FrameworkBundle/Test
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.