我已使用以下命令成功设置了symfony 3.2.4项目:
symfony new symfony_test
cd symfony_test
composer require --dev phpunit/phpunit ^6.0
composer update
然后当我尝试运行默认测试时出现以下错误:
$vendor/bin/phpunit tests/AppBundle/Controller/DefaultControllerTest.php
Fatal error: Class 'PHPUnit_Framework_TestCase' not found in C:\Users\po.louis\PhpstormProjects\test\symfony_test\vendor\symfony\symfony\src\Symfony\Bundle\FrameworkBundle\Test\KernelTestCase.php on line 23
我错过了什么?
最佳答案 似乎在相同版本的框架
as announced in the last weekly update上还不可能:
This week Symfony continued 07001 to make use of the
new PHPUnit namespaces.
希望这将在所有支持的版本上提供.