| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 28 | public function __construct(string $expectedClass, $given, ?int $code = null, ?Throwable $previous = null) |
||
| 29 | { |
||
| 30 | parent::__construct( |
||
| 31 | 'Subject does not extend the expected class.', |
||
| 32 | sprintf( |
||
| 33 | 'Expected an instance of [%s], given: [%s].', |
||
| 34 | $expectedClass, |
||
| 35 | parseVariable($given)->enableType()->toString() |
||
| 36 | ), |
||
| 37 | $code, |
||
| 38 | $previous |
||
| 39 | ); |
||
| 42 |