Code Duplication    Length = 12-12 lines in 2 locations

tests/EdmxTest.php 1 location

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

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
    {