| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 18 | public function testConstructorWithOnlyRequiredArguments() { |
||
| 19 | $entityId = new ItemId( 'Q1' ); |
||
| 20 | $exception = new TermLookupException( $entityId, array( 'de', 'en' ) ); |
||
| 21 | |||
| 22 | $this->assertSame( $entityId, $exception->getEntityId() ); |
||
| 23 | $this->assertSame( |
||
| 24 | 'Term lookup failed for: Q1 with language codes: de, en', |
||
| 25 | $exception->getMessage() |
||
| 26 | ); |
||
| 27 | $this->assertSame( 0, $exception->getCode() ); |
||
| 28 | $this->assertNull( $exception->getPrevious() ); |
||
| 29 | } |
||
| 30 | |||
| 48 |