Completed
Push — master ( 6fd728...1b0e9e )
by David
14s queued 11s
created

FailAuthorizationServiceTest   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 FailAuthorizationServiceTest extends TestCase
8
{
9
10
    public function testIsAllowed()
11
    {
12
        $service = new FailAuthorizationService();
13
        $this->expectException(SecurityNotImplementedException::class);
14
        $service->isAllowed('foo');
15
    }
16
}
17