Debian Codegraph @

tests/classes/Exception/RuntimeExceptionTest.php

raw symbols SCIP
1 <?php
2
3 namespace Liuch\DmarcSrg;
4
5 use Liuch\DmarcSrg\Exception\RuntimeException;
6
7 class RuntimeExceptionTest extends \PHPUnit\Framework\TestCase
8 {
9 public function testExceptionCode(): void
10 {
11 $this->assertSame(-1, (new RuntimeException())->getCode());
12 $this->assertSame(0, (new RuntimeException('', 0))->getCode());
13 $this->assertSame(-1, (new RuntimeException('', -1))->getCode());
14 $this->assertSame(77, (new RuntimeException('', 77))->getCode());
15 }
16 }