TYPO3 CMS  TYPO3_7-6
InArrayValidatorTest.php
Go to the documentation of this file.
1 <?php
3 
4 /*
5  * This file is part of the TYPO3 CMS project.
6  *
7  * It is free software; you can redistribute it and/or modify it under
8  * the terms of the GNU General Public License, either version 2
9  * of the License, or any later version.
10  *
11  * For the full copyright and license information, please read the
12  * LICENSE.txt file that was distributed with this source code.
13  *
14  * The TYPO3 project - inspiring people to share!
15  */
17 
22 {
23 
27  protected $subjectClassName = InArrayValidator::class;
28 
36  {
37  return [
38  '12 in (12, 13, 14)' => [
39  '12',
40  '12,13,14',
41  ],
42  '1 in (5, 3234, oOIUoi8, 3434, 343, 34, 3, 1, 333434, 1234, ssd, ysdfsa)' => [
43  '1',
44  '5,3234,oOIUoi8,3434,343,34,3,1,333434,1234,ssd,ysdfsa',
45  ],
46  'Pizza in (Pizza, Lasange, Strogonvo)' => [
47  'Pizza',
48  'Pizza,Lasange,Strogonvo',
49  ],
50  'Rißtissen in (Rißtissen, Überligen, Karlsruhe)' => [
51  'Rißtissen',
52  'Rißtissen,Überligen,Karlsruhe',
53  ],
54 
55  '[12 and 14] in (12, 13, 14)' => [
56  ['12', '14'],
57  '12,13,14',
58  ],
59  '[1 and ssd] in (5, 3234, oOIUoi8, 3434, 343, 34, 3, 1, 333434, 1234, ssd, ysdfsa)' => [
60  ['1', 'ssd'],
61  '5,3234,oOIUoi8,3434,343,34,3,1,333434,1234,ssd,ysdfsa',
62  ],
63  '[Pizza and Strogonvo] in (Pizza, Lasange, Strogonvo)' => [
64  ['Pizza', 'Strogonvo'],
65  'Pizza,Lasange,Strogonvo',
66  ],
67  '[Rißtissen and Karlsruhe] in (Rißtissen, Überligen, Karlsruhe)' => [
68  ['Rißtissen', 'Karlsruhe'],
69  'Rißtissen,Überligen,Karlsruhe',
70  ],
71  ];
72  }
73 
81  {
82  return [
83  '12 in [12, 13, 14]' => [
84  '12',
85  ['12', '13', '14'],
86  ],
87  '1 in [5, 3234, oOIUoi8, 3434, 343, 34, 3, 1, 333434, 1234, ssd, ysdfsa]' => [
88  '1',
89  ['5', '3234', 'oOIUoi8', '3434', '343', '34', '3', '1', '333434', '1234', 'ssd', 'ysdfsa'],
90  ],
91  'Pizza in [Pizza, Lasange, Strogonvo]' => [
92  ['Pizza', 'Strogonvo'],
93  ['Pizza', 'Lasange', 'Strogonvo'],
94  ],
95  'Rißtissen in [Rißtissen, Überligen, Karlsruhe]' => [
96  ['Rißtissen', 'Karlsruhe'],
97  ['Rißtissen', 'Überligen', 'Karlsruhe'],
98  ],
99 
100  '[12 and 14] in [12, 13, 14]' => [
101  ['12', '14'],
102  ['12', '13', '14'],
103  ],
104  '[1 and ssd] in [5, 3234, oOIUoi8, 3434, 343, 34, 3, 1, 333434, 1234, ssd, ysdfsa]' => [
105  ['1', 'ssd'],
106  ['5', '3234', 'oOIUoi8', '3434', '343', '34', '3', '1', '333434', '1234', 'ssd', 'ysdfsa'],
107  ],
108  '[Pizza and Strogonvo] in [Pizza, Lasange, Strogonvo]' => [
109  'Pizza',
110  ['Pizza', 'Lasange', 'Strogonvo'],
111  ],
112  '[Rißtissen and Karlsruhe] in [Rißtissen, Überligen, Karlsruhe]' => [
113  'Rißtissen',
114  ['Rißtissen', 'Überligen', 'Karlsruhe'],
115  ],
116  ];
117  }
118 
126  {
127  return [
128  '12 in (11, 13, 14)' => [
129  '12',
130  '11,13,14',
131  ],
132  '1 in (5, 3234, oOIUoi8, 3434, 343, 34, 3, 333434, 1234, ssd, ysdfsa)' => [
133  '1',
134  '5,3234,oOIUoi8,3434,343,34,3,333434,1234,ssd,ysdfsa',
135  ],
136  'pizza in (Pizza, Lasange, Strogonvo)' => [
137  'pizza',
138  'Pizza,Lasange,Strogonvo',
139  ],
140  'Eimeldingen in (Rißtissen, Überligen, Karlsruhe)' => [
141  'Eimeldingen',
142  'Rißtissen,Überligen,Karlsruhe',
143  ],
144  'überligen in (Rißtissen, Überligen, Karlsruhe)' => [
145  'überligen',
146  'Rißtissen,Überligen,Karlsruhe',
147  ],
148 
149  '[12 and 14] in (11, 13, 14)' => [
150  ['12', '14'],
151  '11,13,14',
152  ],
153  '[1 and ssd] in (5, 3234, oOIUoi8, 3434, 343, 34, 3, 333434, 1234, ssd, ysdfsa)' => [
154  ['1', 'ssd'],
155  '5,3234,oOIUoi8,3434,343,34,3,333434,1234,ssd,ysdfsa',
156  ],
157  '[pizza and Lasange] in (Pizza, Lasange, Strogonvo)' => [
158  ['pizza', 'Lasange'],
159  'Pizza,Lasange,Strogonvo',
160  ],
161  '[Eimeldingen and Überligen] in (Rißtissen, Überligen, Karlsruhe)' => [
162  ['Eimeldingen', 'Überligen'],
163  'Rißtissen,Überligen,Karlsruhe',
164  ],
165  '[Eimeldingen and überligen] in (Rißtissen, Überligen, Karlsruhe)' => [
166  ['Eimeldingen', 'überligen'],
167  'Rißtissen,Überligen,Karlsruhe',
168  ],
169  ];
170  }
171 
179  {
180  return [
181  '12 in (11, 13, 14)' => [
182  '12',
183  ['11', '13', '14'],
184  ],
185  '1 in (5, 3234, oOIUoi8, 3434, 343, 34, 3, 333434, 1234, ssd, ysdfsa)' => [
186  '1',
187  ['5', '3234', 'oOIUoi8', '3434', '343', '34', '3', '333434', '1234', 'ssd', 'ysdfsa'],
188  ],
189  'pizza in (Pizza, Lasange, Strogonvo)' => [
190  'pizza',
191  ['Pizza', 'Lasange', 'Strogonvo'],
192  ],
193  'Eimeldingen in (Rißtissen, Überligen, Karlsruhe)' => [
194  'Eimeldingen',
195  ['Rißtissen', 'Überligen', 'Karlsruhe'],
196  ],
197  'überligen in (Rißtissen, Überligen, Karlsruhe)' => [
198  'überligen',
199  ['Rißtissen', 'Überligen', 'Karlsruhe'],
200  ],
201 
202  '[12 and 14] in (11, 13, 14)' => [
203  ['12', '14'],
204  ['11', '13', '14'],
205  ],
206  '[1 and ssd] in (5, 3234, oOIUoi8, 3434, 343, 34, 3, 333434, 1234, ssd, ysdfsa)' => [
207  ['1', 'ssd'],
208  ['5', '3234', 'oOIUoi8', '3434', '343', '34', '3', '333434', '1234', 'ssd', 'ysdfsa'],
209  ],
210  '[pizza and Lasange] in (Pizza, Lasange, Strogonvo)' => [
211  ['pizza', 'Lasange'],
212  ['Pizza', 'Lasange', 'Strogonvo'],
213  ],
214  '[Eimeldingen and Überligen] in (Rißtissen, Überligen, Karlsruhe)' => [
215  ['Eimeldingen', 'Überligen'],
216  ['Rißtissen', 'Überligen', 'Karlsruhe'],
217  ],
218  '[Eimeldingen and überligen] in (Rißtissen, Überligen, Karlsruhe)' => [
219  ['Eimeldingen', 'überligen'],
220  ['Rißtissen', 'Überligen', 'Karlsruhe'],
221  ],
222  ];
223  }
224 
233  {
234  return [
235  '12 in (12, 13, 14)' => [
236  '12',
237  '12,13,14',
238  ],
239  '1 in (5, 3234, oOIUoi8, 3434, 343, 34, 3, 1, 333434, 1234, ssd, ysdfsa)' => [
240  '1',
241  '5,3234,oOIUoi8,3434,343,34,3,1,333434,1234,ssd,ysdfsa',
242  ],
243  'pizza in (Pizza, Lasange, Strogonvo)' => [
244  'pizza',
245  'Pizza,Lasange,Strogonvo',
246  ],
247  'Pizza in (pizza, lasange, strogonvo)' => [
248  'Pizza',
249  'pizza,lasange,strogonvo',
250  ],
251  'Rißtissen in (rißtissen, Überligen, Karlsruhe)' => [
252  'Rißtissen',
253  'rißtissen,Überligen,Karlsruhe',
254  ],
255  'überligen in (Rißtissen, Überligen, Karlsruhe)' => [
256  'überligen',
257  'Rißtissen,Überligen,Karlsruhe',
258  ],
259 
260  '[12 and 14] in (12, 13, 14)' => [
261  ['12', '14'],
262  '12,13,14',
263  ],
264  '[1 and Ssd] in (5, 3234, oOIUoi8, 3434, 343, 34, 3, 1, 333434, 1234, ssd, ysdfsa)' => [
265  ['1', 'Ssd'],
266  '5,3234,oOIUoi8,3434,343,34,3,1,333434,1234,ssd,ysdfsa',
267  ],
268  '[pizza and Lasange] in (Pizza, Lasange, Strogonvo)' => [
269  ['pizza', 'Lasange'],
270  'Pizza,Lasange,Strogonvo',
271  ],
272  '[Pizza and lasange] in (pizza, lasange, strogonvo)' => [
273  ['Pizza', 'lasange'],
274  'pizza,lasange,strogonvo',
275  ],
276  '[Rißtissen and Karlsruhe] in (rißtissen, Überligen, Karlsruhe)' => [
277  ['Rißtissen', 'Karlsruhe'],
278  'rißtissen,Überligen,Karlsruhe',
279  ],
280  '[überligen and Karlsruhe] in (Rißtissen, Überligen, Karlsruhe)' => [
281  ['überligen', 'Karlsruhe'],
282  'Rißtissen,Überligen,Karlsruhe',
283  ],
284  ];
285  }
286 
295  {
296  return [
297  '12 in [12, 13, 14]' => [
298  '12',
299  ['12', '13', '14'],
300  ],
301  '1 in [5, 3234, oOIUoi8, 3434, 343, 34, 3, 1, 333434, 1234, ssd, ysdfsa]' => [
302  '1',
303  ['5', '3234', 'oOIUoi8', '3434', '343', '34', '3', '1', '333434', '1234', 'ssd', 'ysdfsa'],
304  ],
305  'pizza in [Pizza, Lasange, Strogonvo]' => [
306  'pizza',
307  ['Pizza', 'Lasange', 'Strogonvo'],
308  ],
309  'Pizza in [pizza, lasange, strogonvo]' => [
310  'Pizza',
311  ['pizza', 'lasange', 'strogonvo'],
312  ],
313  'Rißtissen in (rißtissen, Überligen, Karlsruhe)' => [
314  'Rißtissen',
315  ['rißtissen', 'Überligen', 'Karlsruhe'],
316  ],
317  'überligen in (Rißtissen, Überligen, Karlsruhe)' => [
318  'überligen',
319  ['Rißtissen', 'Überligen', 'Karlsruhe'],
320  ],
321 
322  '[12 and 14] in (12, 13, 14)' => [
323  ['12', '14'],
324  ['12', '13', '14'],
325  ],
326  '[1 and Ssd] in (5, 3234, oOIUoi8, 3434, 343, 34, 3, 1, 333434, 1234, ssd, ysdfsa)' => [
327  ['1', 'Ssd'],
328  ['5', '3234', 'oOIUoi8', '3434', '343', '34', '3', '1', '333434', '1234', 'ssd', 'ysdfsa'],
329  ],
330  '[pizza and Lasange] in (Pizza, Lasange, Strogonvo)' => [
331  ['pizza', 'Lasange'],
332  ['Pizza', 'Lasange', 'Strogonvo'],
333  ],
334  '[Pizza and lasange] in (pizza, lasange, strogonvo)' => [
335  ['Pizza', 'lasange'],
336  ['pizza', 'lasange', 'strogonvo'],
337  ],
338  '[Rißtissen and Karlsruhe] in (rißtissen, Überligen, Karlsruhe)' => [
339  ['Rißtissen', 'Karlsruhe'],
340  ['rißtissen', 'Überligen', 'Karlsruhe'],
341  ],
342  '[überligen and Karlsruhe] in (Rißtissen, Überligen, Karlsruhe)' => [
343  ['überligen', 'Karlsruhe'],
344  ['Rißtissen', 'Überligen', 'Karlsruhe'],
345  ],
346  ];
347  }
348 
357  {
358  return [
359  'zwölf in (12, 13, 14)' => [
360  'zwölf',
361  '12,13,14',
362  ],
363  '7 in (5, 3234, oOIUoi8, 3434, 343, 34, 3, 1, 333434, 1234, ssd, ysdfsa)' => [
364  '7',
365  '5,3234,oOIUoi8,3434,343,34,3,1,333434,1234,ssd,ysdfsa',
366  ],
367  'riss in (Rißtissen, Überligen, Karlsruhe)' => [
368  'riss',
369  'Rißtissen,Überligen,Karlsruhe',
370  ],
371  'pizzas in (Pizza, Lasange, Strogonvo)' => [
372  'pizzas',
373  'Pizza,Lasange,Strogonvo',
374  ],
375  'lusange in (Pizza, Lasange, Strogonvo)' => [
376  'lusange',
377  'Pizza,Lasange,Strogonvo',
378  ],
379 
380  '[zwölf and 14] in (12, 13, 14)' => [
381  ['zwölf', '14'],
382  '12,13,14',
383  ],
384  '[7 and Ssd] in (5, 3234, oOIUoi8, 3434, 343, 34, 3, 1, 333434, 1234, ssd, ysdfsa)' => [
385  ['7', 'Ssd'],
386  '5,3234,oOIUoi8,3434,343,34,3,1,333434,1234,ssd,ysdfsa',
387  ],
388  '[riss and Karlsruhe] in (Rißtissen, Überligen, Karlsruhe)' => [
389  ['riss', 'Karlsruhe'],
390  'Rißtissen,Überligen,Karlsruhe',
391  ],
392  '[pizzas and Lasange] in (Pizza, Lasange, Strogonvo)' => [
393  ['pizzas', 'Lasange'],
394  'Pizza,Lasange,Strogonvo',
395  ],
396  '[lusange and Strogonvo] in (Pizza, Lasange, Strogonvo)' => [
397  ['lusange', 'Strogonvo'],
398  'Pizza,Lasange,Strogonvo',
399  ],
400  ];
401  }
402 
411  {
412  return [
413  'zwölf in (12, 13, 14)' => [
414  'zwölf',
415  ['12', '13', '14'],
416  ],
417  '7 in (5, 3234, oOIUoi8, 3434, 343, 34, 3, 1, 333434, 1234, ssd, ysdfsa)' => [
418  '7',
419  ['5', '3234', 'oOIUoi8', '3434', '343', '34', '3', '1', '333434', '1234', 'ssd', 'ysdfsa'],
420  ],
421  'riss in (Rißtissen, Überligen, Karlsruhe)' => [
422  'riss',
423  ['Rißtissen', 'Überligen', 'Karlsruhe'],
424  ],
425  'pizzas in (Pizza, Lasange, Strogonvo)' => [
426  'pizzas',
427  ['Pizza', 'Lasange', 'Strogonvo'],
428  ],
429  'lusange in (Pizza, Lasange, Strogonvo)' => [
430  'lusange',
431  ['Pizza', 'Lasange', 'Strogonvo'],
432  ],
433 
434  '[zwölf and 14] in (12, 13, 14)' => [
435  ['zwölf', '14'],
436  ['12', '13', '14'],
437  ],
438  '[7 and Ssd] in (5, 3234, oOIUoi8, 3434, 343, 34, 3, 1, 333434, 1234, ssd, ysdfsa)' => [
439  ['7', 'Ssd'],
440  ['5', '3234', 'oOIUoi8', '3434', '343', '34', '3', '1', '333434', '1234', 'ssd', 'ysdfsa'],
441  ],
442  '[riss and Karlsruhe] in (Rißtissen, Überligen, Karlsruhe)' => [
443  ['riss', 'Karlsruhe'],
444  ['Rißtissen', 'Überligen', 'Karlsruhe'],
445  ],
446  '[pizzas and Lasange] in (Pizza, Lasange, Strogonvo)' => [
447  ['pizzas', 'Lasange'],
448  ['Pizza', 'Lasange', 'Strogonvo'],
449  ],
450  '[lusange and Strogonvo] in (Pizza, Lasange, Strogonvo)' => [
451  ['lusange', 'Strogonvo'],
452  ['Pizza', 'Lasange', 'Strogonvo'],
453  ],
454  ];
455  }
456 
464  public function validateForValidInputOnStringConfigurationReturnsNoErrors($value, $allowedOptionsString)
465  {
466  $options = [
467  'element' => uniqid('test'),
468  'errorMessage' => uniqid('error'),
469  ];
470 
471  $options['array'] = $allowedOptionsString;
472  $subject = $this->createSubject($options);
473 
474  $this->assertFalse($subject->validate($value)->hasErrors());
475  }
476 
484  public function validateForValidInputOnArrayConfigurationReturnsNoErrors($value, $allowedOptionsString)
485  {
486  $options = [
487  'element' => uniqid('test'),
488  'errorMessage' => uniqid('error'),
489  ];
490  $options['array.'] = $allowedOptionsString;
491  $subject = $this->createSubject($options);
492 
493  $this->assertFalse($subject->validate($value)->hasErrors());
494  }
495 
503  public function validateForInvalidInputOnStringConfigurationReturnsErrors($value, $allowedOptionsString)
504  {
505  $options = [
506  'element' => uniqid('test'),
507  'errorMessage' => uniqid('error'),
508  ];
509  $options['array'] = $allowedOptionsString;
510  $subject = $this->createSubject($options);
511 
512  $this->assertTrue($subject->validate($value)->hasErrors());
513  }
514 
522  public function validateForInvalidInputOnArrayConfigurationReturnsErrors($value, $allowedOptionsString)
523  {
524  $options = [
525  'element' => uniqid('test'),
526  'errorMessage' => uniqid('error'),
527  ];
528  $options['array.'] = $allowedOptionsString;
529  $subject = $this->createSubject($options);
530 
531  $this->assertTrue($subject->validate($value)->hasErrors());
532  }
533 
542  $value,
543  $allowedOptionsString
544  ) {
545  $options = [
546  'element' => uniqid('test'),
547  'errorMessage' => uniqid('error'),
548  ];
549  $options['array'] = $allowedOptionsString;
550  $options['strict'] = true;
551  $subject = $this->createSubject($options);
552 
553  $this->assertFalse($subject->validate($value)->hasErrors());
554  }
555 
564  $value,
565  $allowedOptionsString
566  ) {
567  $options = [
568  'element' => uniqid('test'),
569  'errorMessage' => uniqid('error'),
570  ];
571  $options['array.'] = $allowedOptionsString;
572  $options['strict'] = true;
573  $subject = $this->createSubject($options);
574 
575  $this->assertFalse($subject->validate($value)->hasErrors());
576  }
577 
586  $value,
587  $allowedOptionsString
588  ) {
589  $options = [
590  'element' => uniqid('test'),
591  'errorMessage' => uniqid('error'),
592  ];
593  $options['array'] = $allowedOptionsString;
594  $options['strict'] = true;
595  $subject = $this->createSubject($options);
596 
597  $this->assertTrue($subject->validate($value)->hasErrors());
598  }
599 
608  $value,
609  $allowedOptionsString
610  ) {
611  $options = [
612  'element' => uniqid('test'),
613  'errorMessage' => uniqid('error'),
614  ];
615  $options['array.'] = $allowedOptionsString;
616  $options['strict'] = true;
617  $subject = $this->createSubject($options);
618 
619  $this->assertTrue($subject->validate($value)->hasErrors());
620  }
621 
630  $value,
631  $allowedOptionsString
632  ) {
633  $options = [
634  'element' => uniqid('test'),
635  'errorMessage' => uniqid('error'),
636  ];
637  $options['array'] = $allowedOptionsString;
638  $options['ignorecase'] = true;
639  $subject = $this->createSubject($options);
640 
641  $this->assertFalse($subject->validate($value)->hasErrors());
642  }
643 
652  $value,
653  $allowedOptionsString
654  ) {
655  $options = [
656  'element' => uniqid('test'),
657  'errorMessage' => uniqid('error'),
658  ];
659  $options['array.'] = $allowedOptionsString;
660  $options['ignorecase'] = true;
661  $subject = $this->createSubject($options);
662 
663  $this->assertFalse($subject->validate($value)->hasErrors());
664  }
665 
674  $value,
675  $allowedOptionsString
676  ) {
677  $options = [
678  'element' => uniqid('test'),
679  'errorMessage' => uniqid('error'),
680  ];
681  $options['array'] = $allowedOptionsString;
682  $options['ignorecase'] = true;
683  $subject = $this->createSubject($options);
684 
685  $this->assertTrue($subject->validate($value)->hasErrors());
686  }
687 
696  $value,
697  $allowedOptionsString
698  ) {
699  $options = [
700  'element' => uniqid('test'),
701  'errorMessage' => uniqid('error'),
702  ];
703  $options['array.'] = $allowedOptionsString;
704  $options['ignorecase'] = true;
705  $subject = $this->createSubject($options);
706 
707  $this->assertTrue($subject->validate($value)->hasErrors());
708  }
709 
718  $value,
719  $allowedOptionsString
720  ) {
721  $options = [
722  'element' => uniqid('test'),
723  'errorMessage' => uniqid('error'),
724  ];
725  $options['array'] = $allowedOptionsString;
726  $options['ignorecase'] = true;
727  $options['strict'] = true;
728  $subject = $this->createSubject($options);
729 
730  $this->assertFalse($subject->validate($value)->hasErrors());
731  }
732 
741  $value,
742  $allowedOptionsString
743  ) {
744  $options = [
745  'element' => uniqid('test'),
746  'errorMessage' => uniqid('error'),
747  ];
748  $options['array.'] = $allowedOptionsString;
749  $options['ignorecase'] = true;
750  $options['strict'] = true;
751  $subject = $this->createSubject($options);
752 
753  $this->assertFalse($subject->validate($value)->hasErrors());
754  }
755 
764  $value,
765  $allowedOptionsString
766  ) {
767  $options = [
768  'element' => uniqid('test'),
769  'errorMessage' => uniqid('error'),
770  ];
771  $options['array'] = $allowedOptionsString;
772  $options['ignorecase'] = true;
773  $options['strict'] = true;
774  $subject = $this->createSubject($options);
775 
776  $this->assertTrue($subject->validate($value)->hasErrors());
777  }
778 
787  $value,
788  $allowedOptionsString
789  ) {
790  $options = [
791  'element' => uniqid('test'),
792  'errorMessage' => uniqid('error'),
793  ];
794  $options['array.'] = $allowedOptionsString;
795  $options['ignorecase'] = true;
796  $options['strict'] = true;
797  $subject = $this->createSubject($options);
798 
799  $this->assertTrue($subject->validate($value)->hasErrors());
800  }
801 }
validateForInvalidInputOnArrayConfigurationReturnsErrors($value, $allowedOptionsString)
validateForInvalidInputOnArrayConfigurationWithStrictComparisonReturnsErrors( $value, $allowedOptionsString)
validateForInvalidInputOnStringConfigurationWithIgnoreCaseAndStrictReturnsErrors( $value, $allowedOptionsString)
validateForValidInputOnArrayConfigurationReturnsNoErrors($value, $allowedOptionsString)
validateForValidInputOnStringConfigurationWithStrictComparisonReturnsNoErrors( $value, $allowedOptionsString)
validateForInvalidInputOnArrayConfigurationWithIgnoreCaseAndStrictReturnsErrors( $value, $allowedOptionsString)
validateForValidInputOnStringConfigurationWithIgnoreCaseAndStrictReturnsNoErrors( $value, $allowedOptionsString)
validateForValidInputOnArrayConfigurationWithIgnoreCaseReturnsNoErrors( $value, $allowedOptionsString)
validateForValidInputOnStringConfigurationWithIgnoreCaseReturnsNoErrors( $value, $allowedOptionsString)
validateForValidInputOnArrayConfigurationWithStrictComparisonReturnsNoErrors( $value, $allowedOptionsString)
validateForInvalidInputOnStringConfigurationWithIgnoreCaseReturnsErrors( $value, $allowedOptionsString)
validateForValidInputOnStringConfigurationReturnsNoErrors($value, $allowedOptionsString)
validateForInvalidInputOnStringConfigurationReturnsErrors($value, $allowedOptionsString)
validateForValidInputOnArrayConfigurationWithIgnoreCaseAndStrictReturnsNoErrors( $value, $allowedOptionsString)
validateForInvalidInputOnStringConfigurationWithStrictComparisonReturnsErrors( $value, $allowedOptionsString)
validateForInvalidInputOnArrayConfigurationWithIgnoreCaseReturnsErrors( $value, $allowedOptionsString)