![](/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.