Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
24 | public function testConfig(string $name, $expectedValue, string $configName = null): void |
||
25 | { |
||
26 | $actualValue = $this->getConfigValue($name, $configName); |
||
27 | if ($expectedValue instanceof Closure) { |
||
28 | $expectedValue($actualValue); |
||
29 | return; |
||
30 | } |
||
31 | if ($expectedValue instanceof LiterallyCallback) { |
||
32 | $expectedValue = $expectedValue->getCallback(); |
||
33 | } |
||
34 | |||
35 | $this->assertEquals($expectedValue, $actualValue); |
||
36 | } |
||
48 |