模糊 / http-异常
此包已被弃用且不再维护。未建议替代包。
包含一组使用一致接口的RESTful HTTP异常的库。
1.0.4
2023-05-02 21:44 UTC
Requires
- php: >=7.0
Requires (Dev)
- phpunit/phpunit: ~5.6
This package is not auto-updated.
Last update: 2024-05-05 06:23:45 UTC
README
包含一组使用一致接口的RESTful HTTP异常的库,基于symfony/http-kernel的想法构建
用法
<?php use Fuzz\HttpException\AccessDeniedHttpException; throw new AccessDeniedHttpException('Access denied.');
测试
phpunit
代码覆盖率
phpunit --coverage-html tests/coverage && open tests/coverage/index.html
待办事项
- 支持所有适当的HTTP状态码
- 改进异常API