Passed
Pull Request — master (#89)
by David
01:45
created

FailAuthenticationServiceTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 4
dl 0
loc 8
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testIsAllowed() 0 5 1
1
<?php
2
3
namespace TheCodingMachine\GraphQL\Controllers\Security;
4
5
use PHPUnit\Framework\TestCase;
6
7
class FailAuthenticationServiceTest extends TestCase
8
{
9
10
    public function testIsAllowed()
11
    {
12
        $service = new FailAuthenticationService();
13
        $this->expectException(SecurityNotImplementedException::class);
14
        $service->isLogged();
15
    }
16
}
17