【发布时间】:2016-10-29 21:00:35
【问题描述】:
我已经使用命令创建了一个 laravel 测试文件
php artisan make:test EventUserRelations
当我运行 phpunit 时,就好像该文件甚至不存在一样。我试图让测试失败只是为了确保它正在被测试。这是文件中的代码:
class EventUserRelations extends TestCase
{
public function testExample()
{
$this->fail();
}
}
这是结果。
phpunit --debug
PHPUnit 5.4.6 by Sebastian Bergmann and contributors.
Starting test 'ExampleTest::testBasicExample'.
. 1 / 1 (100%)
Time: 119 ms, Memory: 20.75MB
【问题讨论】: