hyperf-skeleton icon indicating copy to clipboard operation
hyperf-skeleton copied to clipboard

Optimize unit tests.

Open suyar opened this issue 1 year ago • 0 comments

  1. 升级 phpunit.xml结构。 由于 hyperf/testingphpunit 版本升级到 ^10.0,现有的 phpunit.xml 有些结构废弃了,单元测试会报:
    There was 1 PHPUnit test runner deprecation:
    
    1) Your XML configuration validates against a deprecated schema. Migrate your XML configuration using "--migrate- 
    configuration"!
    
  2. 修复单元测试示例中,HttpTestCase.php 没有引用 use function Hyperf\Support\make;
  3. 优化单元测试 bootstrap.php 文件的代码,目的和这个commit一致:Fixed bug that default option cannot be loaded.

suyar avatar Jan 05 '24 02:01 suyar