| Conditions | 2 |
| Paths | 2 |
| Total Lines | 20 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | public static function getSample() |
||
| 26 | { |
||
| 27 | |||
| 28 | $string_list = [ |
||
| 29 | 'empty' => '' |
||
| 30 | , 'true, cipher' => '1' |
||
| 31 | , 'false, cipher, empty' => '0' |
||
| 32 | , 'false, empty' => 'false' |
||
| 33 | , 'true, 1' => 'true' |
||
| 34 | , 'single ascii' => 'f' |
||
| 35 | , 'cyrillic, multiByte(2 byte)' => 'ї' |
||
| 36 | , 'special' => '0x00' |
||
| 37 | , 'empty, space, short' => str_repeat(' ', 16) |
||
| 38 | , 'normal usual' => str_repeat('q', 32) |
||
| 39 | , 'spec symbols, big' => str_repeat('[]', 64) |
||
| 40 | , 'spec symbols, huge' => str_repeat("_$~-@\"'\\.!#%^&*()+=/?><,", 10 * 1024) |
||
| 41 | ]; |
||
| 42 | |||
| 43 | foreach ($string_list as $pattern => $string) { |
||
| 44 | yield [$pattern => $string]; |
||
| 45 | } |
||
| 48 | } |