Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
31 | public function testConstructorWithAllArguments() { |
||
32 | $entityId = new ItemId( 'Q1' ); |
||
33 | $previous = new Exception( 'previous' ); |
||
34 | $exception = new TermLookupException( |
||
35 | $entityId, |
||
36 | [ 'de', 'en' ], |
||
37 | 'customMessage', |
||
38 | $previous |
||
39 | ); |
||
40 | |||
41 | $this->assertSame( $entityId, $exception->getEntityId() ); |
||
42 | $this->assertSame( 'customMessage', $exception->getMessage() ); |
||
43 | $this->assertSame( 0, $exception->getCode() ); |
||
44 | $this->assertSame( $previous, $exception->getPrevious() ); |
||
45 | } |
||
46 | |||
48 |