Passed
Pull Request — master (#63)
by David
01:46
created

FactoryHydratorTest::testHydratorNotFound()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace TheCodingMachine\GraphQL\Controllers\Hydrators;
4
5
use GraphQL\Type\Definition\InputObjectType;
6
use PHPUnit\Framework\TestCase;
7
8
class FactoryHydratorTest extends TestCase
9
{
10
    public function testHydratorNotFound()
11
    {
12
        $factoryHydrator = new FactoryHydrator();
13
        $this->expectException(CannotHydrateException::class);
14
        $factoryHydrator->hydrate([], new InputObjectType([
15
            'name' => 'foo'
16
        ]));
17
    }
18
}
19