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