单元测试Feature不会被测试执行
phpunit.xml里去掉如下代码
<testsuite name="Feature">
<directory suffix="Test.php">./tests/Feature</directory>
</testsuite>
再次执行就会显示执行成功
如果不去掉,执行就会显示NULL
使用./vendor/bin/phpunit 也是一样的。
推荐文章: