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

@@ 30-41 (lines=12) @@
27
        $this->v3MetadataAgainstXSD($d);
28
    }
29
30
    public function v3MetadataAgainstXSD($data)
31
    {
32
        $ds = DIRECTORY_SEPARATOR;
33
34
        $goodxsd = dirname(__DIR__) . $ds . "xsd" . $ds . "Microsoft.Data.Entity.Design.Edmx_3.Fixed.xsd";
35
        if (!file_exists($goodxsd)) {
36
            return true;
37
        }
38
        $xml = new \DOMDocument();
39
        $xml->loadXML($data);
40
        return $xml->schemaValidate($goodxsd);
41
    }
42
43
    public function testEntitysAndProperties()
44
    {