| Total Complexity | 2 |
| Total Lines | 12 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class ConstantTest extends AbstractRule |
||
| 15 | { |
||
| 16 | |||
| 17 | public function testConstants() |
||
| 18 | { |
||
| 19 | $this->assertRuleResults(['test' => 'toto 1'], [], ['value' => 'test'], 'test'); |
||
| 20 | $this->assertRuleResults(['test' => 'toto 1'], [], ['value' => ['1' => ['toto']]], ['1' => ['toto']]); |
||
| 21 | } |
||
| 22 | |||
| 23 | protected function getRule() |
||
| 24 | { |
||
| 25 | return new Constant(new NullLogger()); |
||
| 26 | } |
||
| 28 |