Completed
Push — master ( 0eb5d9...ce204c )
by David
14s
created

FailWithTest::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 FailWithTest extends TestCase
9
{
10
11
    public function testException()
12
    {
13
        $this->expectException(BadMethodCallException::class);
14
        $this->expectExceptionMessage('The @FailWith annotation must be passed a defaultValue. For instance: "@FailWith(null)"');
15
        new FailWith([]);
16
    }
17
}
18