Completed
Push — master ( e9a797...df9aa1 )
by Mitchel
02:23
created

SessionWasExpiredExceptionTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 2
dl 0
loc 15
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A itRepresentsASessionWasExpiredException() 0 9 1
1
<?php
2
3
namespace Bunq\Tests\Exception;
4
5
use Bunq\Exception\SessionWasExpiredException;
6
use PHPUnit\Framework\TestCase;
7
8
final class SessionWasExpiredExceptionTest extends TestCase
9
{
10
    /**
11
     * @test
12
     */
13
    public function itRepresentsASessionWasExpiredException()
14
    {
15
        $sessionWasExpiredException = new SessionWasExpiredException();
16
17
        $this->assertInstanceOf(SessionWasExpiredException::class, $sessionWasExpiredException);
18
        $this->assertInstanceOf(\Exception::class, $sessionWasExpiredException);
19
        $this->assertSame('Session has expired should now be refreshed', $sessionWasExpiredException->getMessage());
20
        $this->assertSame(400, $sessionWasExpiredException->getCode());
21
    }
22
}
23
24