Conditions | 3 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
48 | 3 | private function callMethods(\PHPUnit_Framework_TestCase $testCase, array $methods) |
|
49 | { |
||
50 | 3 | foreach ($methods as $method) { |
|
51 | 3 | if (!method_exists($testCase, $method)) { |
|
52 | 1 | continue; |
|
53 | } |
||
54 | 2 | $reflectionMethod = new \ReflectionMethod($testCase, $method); |
|
55 | 2 | $reflectionMethod->invoke($testCase); |
|
56 | 3 | } |
|
57 | 3 | } |
|
58 | } |
||
59 |