Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | public function testGlobTypeMapper() |
||
15 | { |
||
16 | $container = new Picotainer([ |
||
17 | TestType::class => function() { |
||
18 | return new TestType($this->getRegistry()); |
||
19 | } |
||
20 | ]); |
||
21 | |||
22 | $mapper = new GlobTypeMapper('TheCodingMachine\GraphQL\Controllers\Fixtures', $container, new AnnotationReader(), new NullCache()); |
||
23 | |||
24 | $this->assertTrue($mapper->canMapClassToType(TestType::class)); |
||
25 | $this->assertInstanceOf(TestType::class, $mapper->mapClassToType(TestType::class)); |
||
26 | } |
||
28 |