今天发现:

假如测试文件为 TestSomthing.php

那么,运行这个测试的时候,如果加QueryString,SimpleTest不会做测试,如 http://example.org/TestSomthing.php?sh=xxx,会出现一个成功的绿条,1个case,0个测试。

如果有一个文件为index.php,通过 require/include 把 TestSomthing.php 包含进来,会有同样的问题。

所以,如果运行 TestSomthing.php 来做单元测试,它的地址一定是如下形式的:

http://example.org/someplace/TestSomthing.php

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-10
  • 2021-12-29
  • 2021-07-30
  • 2021-10-08
  • 2022-01-09
猜你喜欢
  • 2021-11-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-09
  • 2021-12-23
相关资源
相似解决方案