We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | public function testThereIsNoEvaluator() |
||
19 | { |
||
20 | $this->expectException(\RuntimeException::class); |
||
21 | $this->expectExceptionMessage('Evaluator is not needed'); |
||
22 | |||
23 | $expressionFunction = new ExpressionFunction('name', function () {}); |
||
24 | $evaluator = $expressionFunction->getEvaluator(); |
||
25 | |||
26 | $this->assertTrue(is_callable($evaluator)); |
||
27 | |||
28 | $evaluator(); |
||
29 | } |
||
30 | } |
||
31 |