hyperf-skeleton
hyperf-skeleton copied to clipboard
Optimize unit tests.
- 升级
phpunit.xml结构。 由于hyperf/testing的phpunit版本升级到^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"! - 修复单元测试示例中,
HttpTestCase.php没有引用use function Hyperf\Support\make; - 优化单元测试
bootstrap.php文件的代码,目的和这个commit一致:Fixed bug that default option cannot be loaded.