| Conditions | 9 |
| Paths | 5 |
| Total Lines | 23 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 90 |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public function phpunit(array $options = array()) |
||
|
|
|||
| 25 | { |
||
| 26 | ob_get_clean(); |
||
| 27 | |||
| 28 | $files = scandir(__DIR__.'/../../../../tests'); |
||
| 29 | |||
| 30 | foreach ($files as $one) { |
||
| 31 | |||
| 32 | if (is_dir(__DIR__.'/../../../../tests/'.$one) && $one != '..' && $one != '.') { |
||
| 33 | |||
| 34 | $controllerFiles = scandir(__DIR__.'/../../../../tests'.'/'.$one.'/app/Controller'); |
||
| 35 | |||
| 36 | foreach ($controllerFiles as $oneController) { |
||
| 37 | |||
| 38 | if (is_file(__DIR__.'/../../../../tests/'.$one.'/app/Controller/' . $oneController) && $oneController != '..' && $oneController != '.') { |
||
| 39 | |||
| 40 | $unitTest = new \PHPUnit_TextUI_Command; |
||
| 41 | $unitTest->run([__DIR__.'/../../../../tests/'.$one.'/app/Controller/' . $oneController]); |
||
| 42 | } |
||
| 43 | } |
||
| 44 | } |
||
| 45 | } |
||
| 46 | } |
||
| 47 | } |
||
| 48 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.