Phprest\Exception\NotFoundTest::testInstantiation PHP Method

testInstantiation() public method

public testInstantiation ( )
    public function testInstantiation()
    {
        $exception = new NotFound(9, [1, 2, 3]);
        $this->assertEquals('Not Found', $exception->getMessage());
        $this->assertEquals(404, $exception->getStatusCode());
        $this->assertEquals(9, $exception->getCode());
        $this->assertEquals([1, 2, 3], $exception->getDetails());
    }
NotFoundTest