|
6 | 6 | return [
|
7 | 7 | 'without_type_handle' => [
|
8 | 8 | '<?xml version="1.0"?><config></config>',
|
9 |
| - ["Element 'config': Missing child element(s). Expected is ( type ).\nLine: 1\n"], |
| 9 | + ["Element 'config': Missing child element(s). Expected is ( type ).\n" . |
| 10 | + "Line: 1\nThe xml was: \n0:<?xml version=\"1.0\"?>\n1:<config/>\n2:\n"], |
10 | 11 | ],
|
11 | 12 | 'cache_config_with_notallowed_attribute' => [
|
12 | 13 | '<?xml version="1.0"?><config>' .
|
13 | 14 | '<type name="test" translate="label,description" instance="Class\Name" notallowed="some value">' .
|
14 | 15 | '<label>Test</label><description>Test</description></type></config>',
|
15 |
| - ["Element 'type', attribute 'notallowed': The attribute 'notallowed' is not allowed.\nLine: 1\n"], |
| 16 | + ["Element 'type', attribute 'notallowed': The attribute 'notallowed' is not allowed.\nLine: 1\n" . |
| 17 | + "The xml was: \n0:<?xml version=\"1.0\"?>\n1:<config><type name=\"test\" translate=\"label,description\" " . |
| 18 | + "instance=\"Class\\Name\" notallowed=\"some value\"><label>Test</label><description>Test</description>" . |
| 19 | + "</type></config>\n2:\n"], |
16 | 20 | ],
|
17 | 21 | 'cache_config_without_name_attribute' => [
|
18 | 22 | '<?xml version="1.0"?><config><type translate="label,description" instance="Class\Name">' .
|
19 | 23 | '<label>Test</label><description>Test</description></type></config>',
|
20 |
| - ["Element 'type': The attribute 'name' is required but missing.\nLine: 1\n"], |
| 24 | + ["Element 'type': The attribute 'name' is required but missing.\n" . |
| 25 | + "Line: 1\nThe xml was: \n0:<?xml version=\"1.0\"?>\n1:<config>" . |
| 26 | + "<type translate=\"label,description\" instance=\"Class\\Name\"><label>Test</label>" . |
| 27 | + "<description>Test</description></type></config>\n2:\n"], |
21 | 28 | ],
|
22 | 29 | 'cache_config_without_instance_attribute' => [
|
23 | 30 | '<?xml version="1.0"?><config><type name="test" translate="label,description">' .
|
24 | 31 | '<label>Test</label><description>Test</description></type></config>',
|
25 |
| - ["Element 'type': The attribute 'instance' is required but missing.\nLine: 1\n"], |
| 32 | + ["Element 'type': The attribute 'instance' is required but missing.\n" . |
| 33 | + "Line: 1\nThe xml was: \n0:<?xml version=\"1.0\"?>\n1:<config>" . |
| 34 | + "<type name=\"test\" translate=\"label,description\"><label>Test</label><description>Test</description>" . |
| 35 | + "</type></config>\n2:\n"], |
26 | 36 | ],
|
27 | 37 | 'cache_config_without_label_element' => [
|
28 | 38 | '<?xml version="1.0"?><config><type name="test" translate="label,description" instance="Class\Name">' .
|
29 | 39 | '<description>Test</description></type></config>',
|
30 |
| - ["Element 'type': Missing child element(s). Expected is ( label ).\nLine: 1\n"], |
| 40 | + ["Element 'type': Missing child element(s). Expected is ( label ).\n" . |
| 41 | + "Line: 1\nThe xml was: \n0:<?xml version=\"1.0\"?>\n" . |
| 42 | + "1:<config><type name=\"test\" translate=\"label,description\" instance=\"Class\\Name\">" . |
| 43 | + "<description>Test</description></type></config>\n2:\n"], |
31 | 44 | ],
|
32 | 45 | 'cache_config_without_description_element' => [
|
33 | 46 | '<?xml version="1.0"?><config><type name="test" translate="label,description" instance="Class\Name">' .
|
34 | 47 | '<label>Test</label></type></config>',
|
35 |
| - ["Element 'type': Missing child element(s). Expected is ( description ).\nLine: 1\n"], |
| 48 | + ["Element 'type': Missing child element(s). Expected is ( description ).\n" . |
| 49 | + "Line: 1\nThe xml was: \n0:<?xml version=\"1.0\"?>\n" . |
| 50 | + "1:<config><type name=\"test\" translate=\"label,description\" instance=\"Class\\Name\">" . |
| 51 | + "<label>Test</label></type></config>\n2:\n"], |
36 | 52 | ],
|
37 | 53 | 'cache_config_without_child_elements' => [
|
38 | 54 | '<?xml version="1.0"?><config><type name="test" translate="label,description" instance="Class\Name">' .
|
39 | 55 | '</type></config>',
|
40 |
| - ["Element 'type': Missing child element(s). Expected is one of ( label, description ).\nLine: 1\n"], |
| 56 | + ["Element 'type': Missing child element(s). Expected is one of ( label, description ).\n" . |
| 57 | + "Line: 1\nThe xml was: \n0:<?xml version=\"1.0\"?>\n" . |
| 58 | + "1:<config><type name=\"test\" translate=\"label,description\" instance=\"Class\\Name\"/></config>\n2:\n"], |
41 | 59 | ],
|
42 | 60 | 'cache_config_cache_name_not_unique' => [
|
43 | 61 | '<?xml version="1.0"?><config><type name="test" translate="label,description" instance="Class\Name1">' .
|
44 | 62 | '<label>Test1</label><description>Test1</description></type>' .
|
45 | 63 | '<type name="test" translate="label,description" instance="Class\Name2">' .
|
46 | 64 | '<label>Test2</label><description>Test2</description></type></config>',
|
47 | 65 | [
|
48 |
| - "Element 'type': Duplicate key-sequence ['test'] in unique identity-constraint" |
49 |
| - . " 'uniqueCacheName'.\nLine: 1\n" |
| 66 | + "Element 'type': Duplicate key-sequence ['test'] in unique identity-constraint 'uniqueCacheName'.\n" . |
| 67 | + "Line: 1\nThe xml was: \n0:<?xml version=\"1.0\"?>\n" . |
| 68 | + "1:<config><type name=\"test\" translate=\"label,description\" instance=\"Class\\Name1\">" . |
| 69 | + "<label>Test1</label><description>Test1</description></type><type name=\"test\" " . |
| 70 | + "translate=\"label,description\" instance=\"Class\\Name2\">" . |
| 71 | + "<label>Test2</label><description>Test2</description></type></config>\n2:\n" |
50 | 72 | ],
|
51 | 73 | ],
|
52 | 74 | ];
|
0 commit comments