MessagePack\Tests\Unit\Exception\IntegerOverflowExceptionTest::testConstructor PHP Method

testConstructor() public method

public testConstructor ( )
    public function testConstructor()
    {
        $value = -1;
        $errorCode = 42;
        $prevException = new \Exception();
        $exception = new IntegerOverflowException($value, $errorCode, $prevException);
        $this->assertSame($value, $exception->getValue());
        $this->assertSame('The value is too big: 18446744073709551615.', $exception->getMessage());
        $this->assertSame($errorCode, $exception->getCode());
        $this->assertSame($prevException, $exception->getPrevious());
    }
IntegerOverflowExceptionTest