Completed
Branch master (895aee)
by Arthur
04:23 queued 02:09
created

YamlDriverTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3
Metric Value
wmc 1
lcom 0
cbo 3
dl 0
loc 12
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A testYamlParsing() 0 9 1
1
<?php
2
namespace Arthem\GraphQLMapper\Test\Mapping\Driver;
3
4
use Arthem\GraphQLMapper\Mapping\Driver\YamlDriver;
5
use Arthem\GraphQLMapper\Mapping\SchemaContainer;
6
7
class YamlDriverTest extends AbstractDriverTest
8
{
9
    public function testYamlParsing()
10
    {
11
        $driver = new YamlDriver(__DIR__ . '/../../data/StarWarsSchema.yml');
12
13
        $schema = new SchemaContainer();
14
        $driver->load($schema);
15
16
        $this->assertSchemaContainer($schema);
17
    }
18
}
19