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

Optimize unit tests. #112

Merged
merged 2 commits into from
Mar 26, 2024
Merged

Optimize unit tests. #112

merged 2 commits into from
Mar 26, 2024

Conversation

suyar
Copy link
Contributor

@suyar suyar commented Jan 5, 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.

@leocavalcante leocavalcante added the enhancement New feature or request label Mar 25, 2024
@limingxinleo limingxinleo merged commit 7059283 into hyperf:master Mar 26, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants