@@ -6,15 +6,10 @@ class DataFieldsTest extends \PHPUnit\Framework\TestCase
6
6
public function testDataFieldParsing ()
7
7
{
8
8
$ dataFields = new DataFields ($ this ->_testInput );
9
+ //print_r($dataFields->__toArray());exit;
9
10
$ this ->assertEquals ($ this ->_parsedResult , $ dataFields ->__toArray ());
10
11
}
11
12
12
- public function testParsingOfDataFieldWithWarning ()
13
- {
14
- $ dataFields = new DataFields ($ this ->_warningInput );
15
- $ this ->assertEquals ($ this ->_parsedWarningResult , $ dataFields ->__toArray ());
16
- }
17
-
18
13
protected $ _testInput = <<<DATA
19
14
---
20
15
FieldType: Text
@@ -64,7 +59,6 @@ public function testParsingOfDataFieldWithWarning()
64
59
---more:colons:
65
60
and
66
61
multi lines
67
- even indented
68
62
69
63
FieldJustification: Left
70
64
DATA ;
@@ -107,46 +101,8 @@ public function testParsingOfDataFieldWithWarning()
107
101
'FieldNameAlt ' => 'field5_alt ' ,
108
102
'FieldFlags ' => 0 ,
109
103
'FieldValue ' => "field:with:colons \n\n---more:colons: \nand \nmulti lines \n" ,
110
- 'FieldValueDefault ' => "default:with:colons \n\n---more:colons: \nand \nmulti lines \n even indented \n " ,
104
+ 'FieldValueDefault ' => "default:with:colons \n\n---more:colons: \nand \nmulti lines \n" ,
111
105
'FieldJustification ' => 'Left ' ,
112
106
]
113
107
];
114
-
115
- protected $ _warningInput = <<<DATA
116
- WARNING: The creator of the input PDF:
117
- example_pdf_with_password.pdf
118
- has set an owner password (which is not required to handle this PDF).
119
- You did not supply this password. Please respect any copyright.
120
- ---
121
- FieldType: Text
122
- FieldName: field1
123
- FieldNameAlt: field1_alt
124
- FieldFlags: 0
125
- FieldJustification: Left
126
- ---
127
- FieldType: Text
128
- FieldName: field2
129
- FieldNameAlt: field2_alt
130
- FieldFlags: 0
131
- FieldValue: value:with:colons
132
- FieldJustification: Left
133
- DATA ;
134
-
135
- protected $ _parsedWarningResult = [
136
- [
137
- 'FieldType ' => 'Text ' ,
138
- 'FieldName ' => 'field1 ' ,
139
- 'FieldNameAlt ' => 'field1_alt ' ,
140
- 'FieldFlags ' => 0 ,
141
- 'FieldJustification ' => 'Left ' ,
142
- ],
143
- [
144
- 'FieldType ' => 'Text ' ,
145
- 'FieldName ' => 'field2 ' ,
146
- 'FieldNameAlt ' => 'field2_alt ' ,
147
- 'FieldFlags ' => 0 ,
148
- 'FieldValue ' => 'value:with:colons ' ,
149
- 'FieldJustification ' => 'Left ' ,
150
- ],
151
- ];
152
108
}
0 commit comments