Unit testing 在Symfony中使用PHPUnit运行所有测试
我使用的是PHPUnit 5.4.8和Symfony 2.3 我有我所有的单元测试包,我想运行所有这些测试,并覆盖html。我试着用命令Unit testing 在Symfony中使用PHPUnit运行所有测试,unit-testing,symfony,phpunit,Unit Testing,Symfony,Phpunit,我使用的是PHPUnit 5.4.8和Symfony 2.3 我有我所有的单元测试包,我想运行所有这些测试,并覆盖html。我试着用命令 phpunit -c app --no-globals-backup --coverage-html ~/coverage/ src/*Bundles/Tests/Unit 但它就是不起作用 这是我在phpunit.xml.dist中的测试套件 <testsuites> <testsuite name="Project Te
phpunit -c app --no-globals-backup --coverage-html ~/coverage/ src/*Bundles/Tests/Unit
但它就是不起作用
这是我在phpunit.xml.dist中的测试套件
<testsuites>
<testsuite name="Project Test Suite">
<directory>../src/*/*Bundle/Tests/Unit</directory>
</testsuite>
</testsuites>
我想知道怎么做,首先测试套件的名称不能有空格,所以phpunit.xml.dist文件现在是这样的:
<testsuites>
<testsuite name="Project">
<directory>../src/*/*Bundle/Tests/Unit</directory>
</testsuite>
</testsuites>
但它就是不起作用。你能说得更具体一点吗?它抛出了一个错误:非序列化“mockry_57f53d6f8d9b8”的数据格式错误
phpunit -c app --no-globals-backup --coverage-html ~/coverage/ --testsuite Project