| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | public function testNewExceptionWithMessageAndArray() |
||
| 28 | { |
||
| 29 | $errors = array('error 1', 'error 2'); |
||
| 30 | $exception = new PassInvalidException('Exception message', $errors); |
||
| 31 | |||
| 32 | self::assertTrue(is_array($exception->getErrors())); |
||
| 33 | self::assertEquals($errors, $exception->getErrors()); |
||
| 34 | self::assertSame('Exception message', $exception->getMessage()); |
||
| 35 | } |
||
| 38 |