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 | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | public function testThereIsNoEvaluator() |
||
11 | { |
||
12 | $this->expectException(\RuntimeException::class); |
||
13 | $this->expectExceptionMessage('Evaluator is not needed'); |
||
14 | |||
15 | $expressionFunction = new ExpressionFunction('name', function () {}); |
||
16 | $evaluator = $expressionFunction->getEvaluator(); |
||
17 | |||
18 | $this->assertTrue(is_callable($evaluator)); |
||
19 | |||
20 | $evaluator(); |
||
21 | } |
||
22 | } |
||
23 |