Ejemplo n.º 1
0
<?php

use Siphon\Exception\HttpException;
describe("HttpException", function () {
    it("returns the exception status code and headers", function () {
        $e = new HttpException(404, 'Something not found', null, []);
        expect($e->getStatusCode())->toBe(404);
        expect($e->getHeaders())->toBe([]);
    });
});