0

在测试 Laravel 项目时,我想在某些情况下手动回显警告。

4

1 回答 1

0

使用 addWarning 方法

public function testBasicTest()
    {
        $this->addWarning('There is not enough record in actual database to test pagination');
    }
于 2019-09-18T11:08:49.610 回答