build(deps): 更新依赖并添加 PHPSpec 支持

- 添加 Symfony polyfill-php84依赖
- 更新 rector/rector 至最新版本
- 添加 PHPSpec 相关配置和依赖
- 更新 composer.json 配置
- 调整项目结构,添加 spec 目录作为测试源

Signed-off-by: 李东云 <dongyu.li@luxcreo.ai>
This commit is contained in:
李东云
2025-07-07 13:27:25 +08:00
parent bb11a1d8f4
commit c8b454540d
6 changed files with 980 additions and 449 deletions

View File

@@ -43,6 +43,7 @@
"symfony/polyfill-php81": "^1.28",
"symfony/polyfill-php82": "^1.28",
"symfony/polyfill-php83": "^1.28",
"symfony/polyfill-php84": "^1.28",
"teapot/status-code": "^1.1.2"
},
"require-dev": {
@@ -59,8 +60,9 @@
"hyperf/testing": "^3.1",
"hyperf/validation": "3.1.*",
"pestphp/pest": "^2.23",
"phpspec/phpspec": "^7.5",
"phpstan/phpstan": "^1.10.49",
"rector/rector": "^0.15.25",
"rector/rector": "*",
"roave/security-advisories": "dev-latest",
"spatie/pest-plugin-test-time": "^2.0",
"swoole/ide-helper": "*",
@@ -107,7 +109,7 @@
"phpunit.xml"
]
},
"minimum-stability": "dev",
"minimum-stability": "beta",
"prefer-stable": true,
"scripts": {
"post-root-package-install": [],
@@ -125,6 +127,10 @@
]
},
"repositories": {
"nest": {
"type": "composer",
"url": "https://nest.doylee.cn/api/packages/HDK/composer"
},
"packagist": {
"type": "composer",
"url": "https://mirrors.aliyun.com/composer/"