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