Passed
Push — master ( 1cf0a9...56b73d )
by Ayan
01:37
created

MethodNotAllowedTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 12
rs 10
c 0
b 0
f 0
1
<?php namespace Phprest\Exception;
2
3
use PHPUnit\Framework\TestCase;
4
5
class MethodNotAllowedTest extends TestCase
6
{
7
    public function testInstantiation(): void
8
    {
9
        $exception = new MethodNotAllowed(9, [1,2,3]);
10
11
        $this->assertEquals('Method Not Allowed', $exception->getMessage());
12
        $this->assertEquals(405, $exception->getStatusCode());
13
        $this->assertEquals(9, $exception->getCode());
14
        $this->assertEquals([1,2,3], $exception->getDetails());
15
    }
16
}
17