Conditions | 3 |
Paths | 5 |
Total Lines | 20 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
28 | public function run(RpTestInterface $test, TestInfo $testInfo) |
||
29 | { |
||
30 | $testResult = new RpTestResult( |
||
31 | $test, |
||
32 | $testInfo, |
||
33 | $this->implementationProvider->getCallableCode([$test, 'execute']) |
||
34 | ); |
||
35 | |||
36 | try { |
||
37 | Assert::resetCount(); |
||
38 | $test->execute($testInfo); |
||
39 | |||
40 | if (0 === Assert::getCount()) { |
||
41 | throw new IncompleteTestError('There was no assertions in test'); |
||
42 | } |
||
43 | } catch (Throwable $e) { |
||
44 | $testResult->setException($e); |
||
45 | } |
||
46 | |||
47 | return $testResult; |
||
48 | } |
||
50 |