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 | 20 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 52 | public function testEnumInheritance() |
||
| 53 | { |
||
| 54 | $this->assertArrayHasKey('Period', $this->config); |
||
| 55 | $this->assertEquals( |
||
| 56 | [ |
||
| 57 | 'type' => 'enum', |
||
| 58 | InheritanceProcessor::INHERITS_KEY => ['Day', 'Month', 'Year'], |
||
| 59 | 'decorator' => false, |
||
| 60 | 'config' => [ |
||
| 61 | 'name' => 'Period', |
||
| 62 | 'values' => [ |
||
| 63 | 'YEAR' => ['value' => 3], |
||
| 64 | 'MONTH' => ['value' => 2], |
||
| 65 | 'DAY' => ['value' => 1], |
||
| 66 | ], |
||
| 67 | ], |
||
| 68 | ], |
||
| 69 | $this->config['Period'] |
||
| 70 | ); |
||
| 71 | } |
||
| 72 | |||
| 79 |