Code Duplication    Length = 14-14 lines in 2 locations

Tests/Units/Driver/ChainDriverTests.php 1 location

@@ 31-44 (lines=14) @@
28
    /**
29
     * @return ChainDriver
30
     */
31
    protected function createDriver()
32
    {
33
        $mappingDirectory = __DIR__.'/../../Fixtures/mapping';
34
35
        $ymlDriver = new YamlDriver(
36
            new DefaultFileLocator([$mappingDirectory => 'Cubiche\Core\Metadata\Tests\Fixtures'])
37
        );
38
39
        $xmlDriver = new XmlDriver(
40
            new DefaultFileLocator([$mappingDirectory => 'Cubiche\Core\Metadata\Tests'])
41
        );
42
43
        return new ChainDriver([$ymlDriver, $xmlDriver]);
44
    }
45
46
    /**
47
     * @return ChainDriver

Tests/Units/Driver/MergeableDriverTests.php 1 location

@@ 31-44 (lines=14) @@
28
    /**
29
     * @return MergeableDriver
30
     */
31
    protected function createDriver()
32
    {
33
        $mappingDirectory = __DIR__.'/../../Fixtures/mapping';
34
35
        $ymlDriver = new YamlDriver(
36
            new DefaultFileLocator([$mappingDirectory => 'Cubiche\Core\Metadata\Tests\Fixtures'])
37
        );
38
39
        $xmlDriver = new XmlDriver(
40
            new DefaultFileLocator([$mappingDirectory => 'Cubiche\Core\Metadata\Tests'])
41
        );
42
43
        return new MergeableDriver([$ymlDriver, $xmlDriver]);
44
    }
45
46
    /**
47
     * Test loadMetadataForClass method.