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

itRepresentsASessionWasExpiredException()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 9
rs 9.6666
cc 1
eloc 6
nc 1
nop 0
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