Code Duplication    Length = 17-25 lines in 2 locations

src/OpenOrchestra/Tests/Functional/Mapping/Metadata/Driver/XmlDriverTest.php 1 location

@@ 11-27 (lines=17) @@
8
/**
9
 * Class XmlDriverTest
10
 */
11
class XmlDriverTest extends AbstractDriverTest
12
{
13
    /**
14
     * Set Up
15
     */
16
    public function setUp()
17
    {
18
        parent::setUp();
19
        $dirs = array('OpenOrchestra\FunctionalTests\Mapping\Metadata\Driver\FakeClass' => __DIR__ . '/xml');
20
        $fileLocaltor = new FileLocator($dirs);
21
22
        $this->driver = new XmlDriver($fileLocaltor,
23
            $this->propertySearchMetadataFactory,
24
            $this->mergeableClassMetadataFactory
25
        );
26
    }
27
}
28

src/OpenOrchestra/Tests/Functional/Mapping/Metadata/Driver/YamlDriverTest.php 1 location

@@ 11-35 (lines=25) @@
8
/**
9
 * Class YamlDriverTest
10
 */
11
class YamlDriverTest extends AbstractDriverTest
12
{
13
    /**
14
     * Set Up
15
     */
16
    public function setUp()
17
    {
18
        parent::setUp();
19
        $dirs = array('OpenOrchestra\FunctionalTests\Mapping\Metadata\Driver\FakeClass' => __DIR__ . '/yml');
20
        $fileLocator = new FileLocator($dirs);
21
22
        $this->driver = new YamlDriver($fileLocator,
23
            $this->propertySearchMetadataFactory,
24
            $this->mergeableClassMetadataFactory
25
        );
26
    }
27
28
    /**
29
     * Test LoadMetadataForClass
30
     */
31
    public function testLoadMetadataForClass()
32
    {
33
        $this->markTestSkipped('Problem with Travis builds');
34
    }
35
}
36