Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

优化单元测试默认用例 #111

Closed
wants to merge 0 commits into from
Closed

优化单元测试默认用例 #111

wants to merge 0 commits into from

Conversation

suyar
Copy link
Contributor

@suyar suyar commented Jan 4, 2024

  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.

@limingxinleo
Copy link
Member

重新再改一下吧

@suyar
Copy link
Contributor Author

suyar commented Jan 5, 2024

重新再改一下吧

@limingxinleo 需要改啥~

@limingxinleo
Copy link
Member

重新拉最新代码,有冲突

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants