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

TestControllerWithFailWith::testFailWith()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
4
namespace TheCodingMachine\GraphQL\Controllers\Fixtures;
5
6
use ArrayObject;
7
use TheCodingMachine\GraphQL\Controllers\Annotations\FailWith;
8
use TheCodingMachine\GraphQL\Controllers\Annotations\Logged;
9
use TheCodingMachine\GraphQL\Controllers\Annotations\Mutation;
10
use TheCodingMachine\GraphQL\Controllers\Annotations\Query;
11
use TheCodingMachine\GraphQL\Controllers\Annotations\Right;
12
13
class TestControllerWithFailWith
14
{
15
    /**
16
     * @Query
17
     * @Logged
18
     * @FailWith(null)
19
     */
20
    public function testFailWith(): TestObject
21
    {
22
        return new TestObject('foo');
23
    }
24
}
25