File tree Expand file tree Collapse file tree 5 files changed +272
-0
lines changed
src/Standards/PEAR/Tests/ControlStructures Expand file tree Collapse file tree 5 files changed +272
-0
lines changed Original file line number Diff line number Diff line change @@ -188,3 +188,64 @@ if ($a
188
188
?>
189
189
<?php endif ; ?>
190
190
<?php endforeach ; ?>
191
+ <?php
192
+
193
+ if ($ IPP ->errorCode () == 401 || // phpcs:ignore Standard.Category.Sniff -- for reasons.
194
+ $ IPP ->errorCode () == 3200 ) /*
195
+ phpcs:ignore Standard.Category.Sniff -- for reasons.
196
+ */
197
+ {
198
+ return false ;
199
+ }
200
+
201
+ if ($ IPP ->errorCode () == 401 || // phpcs:disable Standard.Category.Sniff -- for reasons.
202
+ $ IPP ->errorCode () == 3200 ) // phpcs:enable
203
+ {
204
+ return false ;
205
+ }
206
+
207
+ if ($ IPP ->errorCode () == 401
208
+ // phpcs:ignore Standard.Category.Sniff -- for reasons.
209
+ || $ IPP ->errorCode () == 3200
210
+ ) {
211
+ return false ;
212
+ }
213
+
214
+ if ($ IPP ->errorCode () == 401 ||
215
+ /*
216
+ * phpcs:disable Standard.Category.Sniff -- for reasons.
217
+ */
218
+ $ IPP ->errorCode () == 3200
219
+ ) {
220
+ return false ;
221
+ }
222
+
223
+ if ($ IPP ->errorCode () == 401
224
+ || $ IPP ->errorCode () == 3200
225
+ // phpcs:ignore Standard.Category.Sniff -- for reasons.
226
+ ) {
227
+ return false ;
228
+ }
229
+
230
+ if ($ IPP ->errorCode () == 401
231
+ || $ IPP ->errorCode ()
232
+ === 'someverylongexpectedoutput '
233
+ ) {
234
+ return false ;
235
+ }
236
+
237
+ if ($ IPP ->errorCode () == 401
238
+ || $ IPP ->errorCode ()
239
+ // A comment.
240
+ === 'someverylongexpectedoutput '
241
+ ) {
242
+ return false ;
243
+ }
244
+
245
+ if ($ IPP ->errorCode () == 401
246
+ || $ IPP ->errorCode ()
247
+ // phpcs:ignore Standard.Category.Sniff -- for reasons.
248
+ === 'someverylongexpectedoutput '
249
+ ) {
250
+ return false ;
251
+ }
Original file line number Diff line number Diff line change @@ -185,3 +185,63 @@ if ($a
185
185
?>
186
186
<?php endif; ?>
187
187
<?php endforeach; ?>
188
+ <?php
189
+
190
+ if ($IPP->errorCode() == 401 // phpcs:ignore Standard.Category.Sniff -- for reasons.
191
+ || $IPP->errorCode() == 3200 /*
192
+ phpcs:ignore Standard.Category.Sniff -- for reasons.
193
+ */
194
+ ) {
195
+ return false;
196
+ }
197
+
198
+ if ($IPP->errorCode() == 401 // phpcs:disable Standard.Category.Sniff -- for reasons.
199
+ || $IPP->errorCode() == 3200 // phpcs:enable
200
+ ) {
201
+ return false;
202
+ }
203
+
204
+ if ($IPP->errorCode() == 401
205
+ // phpcs:ignore Standard.Category.Sniff -- for reasons.
206
+ || $IPP->errorCode() == 3200
207
+ ) {
208
+ return false;
209
+ }
210
+
211
+ if ($IPP->errorCode() == 401
212
+ /*
213
+ * phpcs:disable Standard.Category.Sniff -- for reasons.
214
+ */
215
+ || $IPP->errorCode() == 3200
216
+ ) {
217
+ return false;
218
+ }
219
+
220
+ if ($IPP->errorCode() == 401
221
+ || $IPP->errorCode() == 3200
222
+ // phpcs:ignore Standard.Category.Sniff -- for reasons.
223
+ ) {
224
+ return false;
225
+ }
226
+
227
+ if ($IPP->errorCode() == 401
228
+ || $IPP->errorCode() === 'someverylongexpectedoutput'
229
+ ) {
230
+ return false;
231
+ }
232
+
233
+ if ($IPP->errorCode() == 401
234
+ || $IPP->errorCode()
235
+ // A comment.
236
+ === 'someverylongexpectedoutput'
237
+ ) {
238
+ return false;
239
+ }
240
+
241
+ if ($IPP->errorCode() == 401
242
+ || $IPP->errorCode()
243
+ // phpcs:ignore Standard.Category.Sniff -- for reasons.
244
+ === 'someverylongexpectedoutput'
245
+ ) {
246
+ return false;
247
+ }
Original file line number Diff line number Diff line change @@ -177,3 +177,75 @@ if (a
177
177
) ) {
178
178
return false ;
179
179
}
180
+
181
+
182
+
183
+
184
+
185
+
186
+
187
+
188
+
189
+
190
+
191
+
192
+
193
+ if ( foo == 401 || // phpcs:ignore Standard.Category.Sniff -- for reasons.
194
+ bar == 3200 ) /*
195
+ phpcs:ignore Standard.Category.Sniff -- for reasons.
196
+ */
197
+ {
198
+ return false ;
199
+ }
200
+
201
+ if ( foo == 401 || // phpcs:disable Standard.Category.Sniff -- for reasons.
202
+ bar == 3200 ) // phpcs:enable
203
+ {
204
+ return false ;
205
+ }
206
+
207
+ if ( IPP . errorCode ( ) == 401
208
+ // phpcs:ignore Standard.Category.Sniff -- for reasons.
209
+ || IPP . errorCode ( ) == 3200
210
+ ) {
211
+ return false ;
212
+ }
213
+
214
+ if ( foo == 401 ||
215
+ /*
216
+ * phpcs:disable Standard.Category.Sniff -- for reasons.
217
+ */
218
+ bar == 3200
219
+ ) {
220
+ return false ;
221
+ }
222
+
223
+ if ( IPP . errorCode ( ) == 401
224
+ || IPP . errorCode ( ) == 3200
225
+ // phpcs:ignore Standard.Category.Sniff -- for reasons.
226
+ ) {
227
+ return false ;
228
+ }
229
+
230
+ if ( foo == 401
231
+ || bar
232
+ == 'someverylongexpectedoutput'
233
+ ) {
234
+ return false ;
235
+ }
236
+
237
+ if ( IPP . errorCode ( ) == 401
238
+ || bar
239
+ // A comment.
240
+ == 'someverylongexpectedoutput'
241
+ ) {
242
+ return false ;
243
+ }
244
+
245
+ if ( foo == 401
246
+ || IPP . errorCode ( )
247
+ // phpcs:ignore Standard.Category.Sniff -- for reasons.
248
+ == 'someverylongexpectedoutput'
249
+ ) {
250
+ return false ;
251
+ }
Original file line number Diff line number Diff line change @@ -174,3 +174,74 @@ if (a
174
174
) {
175
175
return false;
176
176
}
177
+
178
+
179
+
180
+
181
+
182
+
183
+
184
+
185
+
186
+
187
+
188
+
189
+
190
+ if (foo == 401 // phpcs:ignore Standard.Category.Sniff -- for reasons.
191
+ || bar == 3200 /*
192
+ phpcs:ignore Standard.Category.Sniff -- for reasons.
193
+ */
194
+ ) {
195
+ return false;
196
+ }
197
+
198
+ if (foo == 401 // phpcs:disable Standard.Category.Sniff -- for reasons.
199
+ || bar == 3200 // phpcs:enable
200
+ ) {
201
+ return false;
202
+ }
203
+
204
+ if (IPP.errorCode() == 401
205
+ // phpcs:ignore Standard.Category.Sniff -- for reasons.
206
+ || IPP.errorCode() == 3200
207
+ ) {
208
+ return false;
209
+ }
210
+
211
+ if (foo == 401
212
+ /*
213
+ * phpcs:disable Standard.Category.Sniff -- for reasons.
214
+ */
215
+ || bar == 3200
216
+ ) {
217
+ return false;
218
+ }
219
+
220
+ if (IPP.errorCode() == 401
221
+ || IPP.errorCode() == 3200
222
+ // phpcs:ignore Standard.Category.Sniff -- for reasons.
223
+ ) {
224
+ return false;
225
+ }
226
+
227
+ if (foo == 401
228
+ || bar == 'someverylongexpectedoutput'
229
+ ) {
230
+ return false;
231
+ }
232
+
233
+ if (IPP.errorCode() == 401
234
+ || bar
235
+ // A comment.
236
+ == 'someverylongexpectedoutput'
237
+ ) {
238
+ return false;
239
+ }
240
+
241
+ if (foo == 401
242
+ || IPP.errorCode()
243
+ // phpcs:ignore Standard.Category.Sniff -- for reasons.
244
+ == 'someverylongexpectedoutput'
245
+ ) {
246
+ return false;
247
+ }
Original file line number Diff line number Diff line change @@ -54,6 +54,14 @@ public function getErrorList($testFile='MultiLineConditionUnitTest.inc')
54
54
153 => 2 ,
55
55
168 => 1 ,
56
56
177 => 1 ,
57
+ 194 => 2 ,
58
+ 202 => 2 ,
59
+ 215 => 1 ,
60
+ 218 => 2 ,
61
+ 232 => 2 ,
62
+ 239 => 1 ,
63
+ 240 => 2 ,
64
+ 248 => 2 ,
57
65
];
58
66
59
67
if ($ testFile === 'MultiLineConditionUnitTest.inc ' ) {
You can’t perform that action at this time.
0 commit comments