@after
2018-02-24 15:42 更新
@after
@after 标注用于指明此方法应当在测试用例类中的每个测试方法运行完成之后调用。
class MyTest extends PHPUnit_Framework_TestCase
{
/**
* @after
*/
public function tearDownSomeFixtures()
{
// ...
}
/**
* @after
*/
public function tearDownSomeOtherFixtures()
{
// ...
}
} 以上内容是否对您有帮助:
← @author

免费 AI IDE


更多建议: