Code Duplication    Length = 12-13 lines in 2 locations

tests/EdmxTest.php 1 location

@@ 38-50 (lines=13) @@
35
        $this->v3MetadataAgainstXSD($d);
36
    }
37
38
    public function v3MetadataAgainstXSD($data)
39
    {
40
        $ds = DIRECTORY_SEPARATOR;
41
42
        $goodxsd = dirname(__DIR__) . $ds . 'xsd' . $ds . 'Microsoft.Data.Entity.Design.Edmx_3.Fixed.xsd';
43
        if (!file_exists($goodxsd)) {
44
            return true;
45
        }
46
        $xml = new \DOMDocument();
47
        $xml->loadXML($data);
48
        $xml->schemaValidate($goodxsd);
49
        return true;
50
    }
51
52
    public function testDefaultSerializeDeserializeRoundTrip()
53
    {

tests/MetadataManagerTest.php 1 location

@@ 38-49 (lines=12) @@
35
        $this->v3MetadataAgainstXSD($d);
36
    }
37
38
    public function v3MetadataAgainstXSD($data)
39
    {
40
        $ds = DIRECTORY_SEPARATOR;
41
42
        $goodxsd = dirname(__DIR__) . $ds . 'xsd' . $ds . 'Microsoft.Data.Entity.Design.Edmx_3.Fixed.xsd';
43
        if (!file_exists($goodxsd)) {
44
            return true;
45
        }
46
        $xml = new \DOMDocument();
47
        $xml->loadXML($data);
48
        return $xml->schemaValidate($goodxsd);
49
    }
50
51
    public function testEntitysAndProperties()
52
    {