Completed
Push — master ( 6c2ef1...d70f56 )
by David
15s queued 10s
created

ExtendTypeTest   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 testException() 0 5 1
1
<?php
2
3
namespace TheCodingMachine\GraphQL\Controllers\Annotations;
4
5
use BadMethodCallException;
6
use PHPUnit\Framework\TestCase;
7
8
class ExtendTypeTest extends TestCase
9
{
10
11
    public function testException()
12
    {
13
        $this->expectException(BadMethodCallException::class);
14
        $this->expectExceptionMessage('In annotation @ExtendType, missing compulsory parameter "class".');
15
        new ExtendType([]);
16
    }
17
}
18