Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
28 | public function testConstructorWithAllArguments() { |
||
29 | $entityId = new ItemId( 'Q1' ); |
||
30 | $previous = new Exception( 'previous' ); |
||
31 | $exception = new EntityRedirectLookupException( $entityId, 'customMessage', $previous ); |
||
32 | |||
33 | $this->assertSame( $entityId, $exception->getEntityId() ); |
||
34 | $this->assertSame( 'customMessage', $exception->getMessage() ); |
||
35 | $this->assertSame( 0, $exception->getCode() ); |
||
36 | $this->assertSame( $previous, $exception->getPrevious() ); |
||
37 | } |
||
38 | |||
40 |