【发布时间】:2020-10-23 21:33:23
【问题描述】:
我正在尝试使用 PHPUNit 编写一些测试,但是当我尝试运行 .\vendor\bin\phpunit 时无法识别测试。 这是我的测试类的示例
use \App\Controllers\city_controller;
use PHPUnit\Framework\TestCase;
class city_controllerTest extends TestCase
{
/**
* @test
*/
public function test_AddCity(){
$this->assertTrue(true);
}
}
我总是收到“课堂上没有发现测试的警告”。 谁能帮我? 非常感谢。
【问题讨论】:
标签: phpunit