This repository was archived by the owner on Sep 16, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +40
-6
lines changed
Resources/Fixtures/config Expand file tree Collapse file tree 3 files changed +40
-6
lines changed Original file line number Diff line number Diff line change 9
9
10
10
<xsd : complexType name =" config" >
11
11
<xsd : sequence >
12
- <xsd : element name =" mappings " type =" mappings " minOccurs =" 0" />
12
+ <xsd : element name =" mapping " type =" mapping " minOccurs =" 0" />
13
13
</xsd : sequence >
14
14
</xsd : complexType >
15
15
16
- <xsd : complexType name =" mappings " >
16
+ <xsd : complexType name =" mapping " >
17
17
<xsd : sequence >
18
18
<xsd : element name =" content-path" type =" content-path" minOccurs =" 0" />
19
19
<xsd : element name =" content-name" type =" content-name" />
20
20
</xsd : sequence >
21
+
22
+ <xsd : attribute name =" class" type =" xsd:string" />
21
23
</xsd : complexType >
22
24
23
25
<xsd : complexType name =" content-path" >
24
26
<xsd : sequence >
25
- <xsd : element name =" path-unit" type =" content-identity " minOccurs =" 0" maxOccurs =" unbounded" />
27
+ <xsd : element name =" path-unit" type =" path-unit " minOccurs =" 0" maxOccurs =" unbounded" />
26
28
</xsd : sequence >
27
-
28
- <xsd : attribute name =" name" type =" xsd:string" />
29
29
</xsd : complexType >
30
30
31
31
<xsd : complexType name =" path-unit" >
34
34
<xsd : element name =" exists-action" type =" action" minOccurs =" 0" />
35
35
<xsd : element name =" not-exists-action" type =" action" minOccurs =" 0" />
36
36
</xsd : sequence >
37
+
38
+ <xsd : attribute name =" name" type =" xsd:string" />
37
39
</xsd : complexType >
38
40
39
41
<xsd : complexType name =" content-name" >
62
64
63
65
<xsd : complexType name =" option" >
64
66
<xsd : simpleContent >
65
- <xsd : extension base =" xs :string" >
67
+ <xsd : extension base =" xsd :string" >
66
68
<xsd : attribute name =" name" type =" xsd:string" />
67
69
<xsd : attribute name =" value" type =" xsd:string" />
68
70
</xsd : extension >
Original file line number Diff line number Diff line change
1
+ <config xmlns =" http://cmf.symfony.com/schema/dic/routing_auto" >
2
+ </config >
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ /*
4
+ * This file is part of the Symfony CMF package.
5
+ *
6
+ * (c) 2011-2013 Symfony CMF
7
+ *
8
+ * For the full copyright and license information, please view the LICENSE
9
+ * file that was distributed with this source code.
10
+ */
11
+
12
+
13
+ namespace Symfony \Cmf \Bundle \RoutingAutoBundle \Tests \Unit \DependencyInjection ;
14
+
15
+ use Symfony \Cmf \Component \Testing \Unit \XmlSchemaTestCase ;
16
+
17
+ class XmlSchemaTest extends XmlSchemaTestCase
18
+ {
19
+ public function testSchema ()
20
+ {
21
+ $ xmlFiles = array_map (function ($ file ) {
22
+ return __DIR__ .'/../../Resources/Fixtures/config/ ' .$ file ;
23
+ }, array (
24
+ 'config1.xml ' ,
25
+ 'config.xml ' ,
26
+ ));
27
+
28
+ $ this ->assertSchemaAcceptsXml ($ xmlFiles , __DIR__ .'/../../../Resources/config/schema/routing-auto-1.0.xsd ' );
29
+ }
30
+ }
You can’t perform that action at this time.
0 commit comments