summaryrefslogtreecommitdiff
path: root/tests/Unit/Http/Exceptions/HttpNotFoundTest.php
blob: a39ea087cbf34abdba360bc988b8cc9e662230f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php

namespace Engelsystem\Test\Unit\Http\Exceptions;

use Engelsystem\Http\Exceptions\HttpNotFound;
use PHPUnit\Framework\TestCase;

class HttpNotFoundTest extends TestCase
{
    /**
     * @covers \Engelsystem\Http\Exceptions\HttpNotFound::__construct
     */
    public function testConstruct()
    {
        $exception = new HttpNotFound();
        $this->assertEquals(404, $exception->getStatusCode());
        $this->assertEquals('', $exception->getMessage());

        $exception = new HttpNotFound('Nothing to see here!');
        $this->assertEquals('Nothing to see here!', $exception->getMessage());
    }
}