codeCeption 调试方法

在写UNIT TEST的时候,难免有的时候会遇到错误,遇到错误就需要把变量值打印出来:

可以在代码中加:codecept_debug($returnMessage);

然后在运行UNIT TEST的时候使用:codecept_debug($returnMessage)即可

原文地址:https://www.cnblogs.com/wlemory/p/4633369.html