| Conditions | 4 |
| Paths | 5 |
| Total Lines | 25 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | public function provideAllCases() |
||
| 34 | { |
||
| 35 | $cases = array(); |
||
| 36 | |||
| 37 | foreach (glob(__DIR__ . '/*', GLOB_ONLYDIR) as $dir) { |
||
| 38 | $path = realpath($dir); |
||
| 39 | $json = $this->normalizeJson(file_get_contents($path . '/expected.json')); |
||
| 40 | |||
| 41 | $files = array(); |
||
| 42 | if (file_exists($path . '/source.php')) { |
||
| 43 | $files[] = $path . '/source.php'; |
||
| 44 | } |
||
| 45 | if (file_exists($path . '/source.txt')) { |
||
| 46 | $files[] = $path . '/source.txt'; |
||
| 47 | } |
||
| 48 | |||
| 49 | $cases[] = array( |
||
| 50 | basename($dir), |
||
| 51 | $files, |
||
| 52 | $json |
||
| 53 | ); |
||
| 54 | } |
||
| 55 | |||
| 56 | return $cases; |
||
| 57 | } |
||
| 58 | |||
| 60 |