Code Duplication    Length = 12-12 lines in 2 locations

tests/MetadataManagerTest.php 1 location

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

tests/EdmxTest.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
        $xml->schemaValidate($goodxsd);
49
    }
50
51
    public function testDefaultSerializeDeserializeRoundTrip()
52
    {