我正在尝试使用KernetTestCase进行与触摸数据库的Symfony 2测试的一些示例。
我收到此错误:
Fatal error: Class 'Symfony\Bundle\FrameworkBundle\Test\KernelTestCase' not found in...
在我的测试文件中,我有:
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
和
class AcmeContestTest extends KernelTestCase
但是在运行测试时我仍然会收到上述错误...
答案 0 :(得分:0)
我发现我使用的Symfony版本2.3没有从WebTestCase中提取出KernelTestCase,而Symfony版本2.5已经......
供参考退房:https://github.com/symfony/symfony/tree/master/src/Symfony/Bundle/FrameworkBundle/Test