issues
search
overtrue
/
easy-sms
📲 一款满足你的多种发送需求的短信发送组件
MIT License
3.1k
stars
542
forks
source link
修复:测试失败时日志文件未删除
#318
Closed
zingimmick
closed
2 years ago
zingimmick
commented
2 years ago
通过
@before
和
@after
标注恢复原有
setUp
和
tearDown
的逻辑,确保测试完成后删除日志文件
修复日志内容断言,
https://github.com/overtrue/easy-sms/pull/316
中包含的修改导致下面这个断言必定通过https://github.com/overtrue/easy-sms/blob/94de413f344fa02a850e3ccf6ce2c10e80934276/tests/Gateways/ErrorlogGatewayTest.php#L37-L42
@before
和@after
标注恢复原有setUp
和tearDown
的逻辑,确保测试完成后删除日志文件