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

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