Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Latest commit

 

History

History
23 lines (16 loc) · 546 Bytes

README.md

File metadata and controls

23 lines (16 loc) · 546 Bytes

Fuzz HTTP Exception

A library containing a set of RESTful HTTP exceptions that use a consistent interface, built upon the ideas set by symfony/http-kernel

Usage

<?php

use Fuzz\HttpException\AccessDeniedHttpException;

throw new AccessDeniedHttpException('Access denied.');

Testing

phpunit

Code Coverage

phpunit --coverage-html tests/coverage && open tests/coverage/index.html

TODO

  1. Support all appropriate HTTP status codes
  2. Improve exception API