| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | public function testGetExtra() { |
||
| 22 | $extra = (object) [ |
||
| 23 | 'defined' => 'obviously', |
||
| 24 | ]; |
||
| 25 | $componentSpecification = new ComponentSpecification( |
||
| 26 | 'type_name', '2015021800', null, null, $extra); |
||
| 27 | $this->assertEquals( |
||
| 28 | 'obviously', $componentSpecification->getExtra('defined')); |
||
| 29 | |||
| 30 | $this->expectException(OutOfBoundsException::class); |
||
| 31 | $componentSpecification->getExtra('definitelyUndefined'); |
||
| 32 | } |
||
| 33 | } |
||
| 34 |