Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
18 | public function testConstructorWithOnlyRequiredArguments() { |
||
19 | $itemId = new ItemId( 'Q1' ); |
||
20 | $exception = new LabelDescriptionLookupException( $itemId ); |
||
21 | |||
22 | $this->assertSame( $itemId, $exception->getEntityId() ); |
||
23 | $this->assertSame( 'Label and description lookup failed for: Q1', $exception->getMessage() ); |
||
24 | $this->assertSame( 0, $exception->getCode() ); |
||
25 | $this->assertNull( $exception->getPrevious() ); |
||
26 | } |
||
27 | |||
40 |