Total Complexity | 2 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
16 | class MethodNotAllowedExceptionTest extends TestCase |
||
17 | { |
||
18 | |||
19 | /** |
||
20 | * @return void |
||
21 | */ |
||
22 | public function testConstructor() : void |
||
23 | { |
||
24 | $exception = new MethodNotAllowedException([]); |
||
25 | |||
26 | $this->assertInstanceOf(RuntimeException::class, $exception); |
||
27 | $this->assertInstanceOf(ExceptionInterface::class, $exception); |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * @return void |
||
32 | */ |
||
33 | public function testGetAllowedMethods() : void |
||
34 | { |
||
35 | $exception = new MethodNotAllowedException(['foo']); |
||
36 | |||
37 | $this->assertSame(['foo'], $exception->getAllowedMethods()); |
||
38 | } |
||
40 |