我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

codeception不是测试的公共方法

codeception treats every public method as a test. However I have a method that I need to be public. However, it is not a test. Can I somehow annotate it to tell codeception that it should not be run as a test?

You can start the function with an underscore to let Codeception know it's not a test:

public function _after(AcceptanceTester $I)
{

} 

近期文章

  • 将php存储到数据源(而不是mysql)的方法
  • 用正则表达式验证正则句语法
  • 如何在PHP中裁剪图像并以PNG格式返回?
  • 我可以从PHP获取文件的短DOS名称吗?
  • Charset使用javascript小部件编码到php
  • 从引用URL的一部分创建php变量
  • 如何在zend框架2中使用特殊布局?
  • 如何使用AJAX和PHP将数据添加到sql db中
  • 使用php和显示将图像存储到mysql DB中
  • 这是如何工作的:chr(($ number >> 6)+192).chr(($ number&63)+128);
  • 有没有办法在PHP中编码错误消息
  • PHP:如何保留SOAP响应的结构?
  • php - 如何获取Windows的服务器时区?
  • 我可以查询2列在Mysql中返回1行吗?
  • 如何从PHP创建MySQL存储过程?
  • 在共享主机上加速Magento的技术
  • Echo在mysql中保存的日期在不同的HTML div中?
  • ckeditor - 不在textarea中设置html数据
  • 如果单词不在标题内,则为Preg_replace
  • setOnDismissListener有异常

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华