Completed
Push — master ( 854a6f...c7bd33 )
by Chad
12s
created

AuthenticationExceptionTest::getStatusCode()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
3
namespace ChadicusTest\Psr\Http\ServerMiddleware;
4
5
use Chadicus\Psr\Http\ServerMiddleware\AuthenticationException;
6
7
/**
8
 * @coversDefaultClass \Chadicus\Psr\Http\ServerMiddleware\AuthenticationException
9
 * @covers ::__construct
10
 */
11
final class AuthenticationExceptionTest extends \PHPUnit\Framework\TestCase
12
{
13
    /**
14
     * Verify basic behavior of getStatusCode().
15
     *
16
     * @test
17
     * @covers ::getStatusCode
18
     *
19
     * @return void
20
     */
21
    public function getStatusCode()
22
    {
23
        $exception = new AuthenticationException(200, 'A Reason');
24
        $this->assertSame(200, $exception->getStatusCode());
25
    }
26
27
    /**
28
     * Verify basic behavior of getReasonPhrase().
29
     *
30
     * @test
31
     * @covers ::getReasonPhrase
32
     *
33
     * @return void
34
     */
35
    public function getReasonPhrase()
36
    {
37
        $exception = new AuthenticationException(200, 'A Reason');
38
        $this->assertSame('A Reason', $exception->getReasonPhrase());
39
    }
40
}
41