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

ExtendTypeTest::testException()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
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