我是phpunit的新手。任何人都可以解释一下如何从数据库(Innodb)中删除测试数据
use PHPUnit\Framework\TestCase as TestCase;
use Model\Nationality\NationalityModel as NationalityModel;
class XSCNationalityModelTest extends TestCase
{
private $NationalityModelObj;
protected function setUp()
{
$this->NationalityModelObj = new NationalityModel();
}
/**
*@test
*
*/
public function it_test_nationality_is_added_or_not()
{
$this->NationalityModelObj->AddNationality("Germany");
}
}