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

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