| Total Complexity | 3 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class PassInvalidExceptionTest extends TestCase |
||
| 9 | { |
||
| 10 | public function testNewExceptionWithoutErrorsArray() |
||
| 16 | } |
||
| 17 | |||
| 18 | public function testNewExceptionWithErrorsArray() |
||
| 19 | { |
||
| 20 | $errors = ['error 1', 'error 2']; |
||
| 21 | $exception = new PassInvalidException('', $errors); |
||
| 22 | |||
| 23 | self::assertTrue(is_array($exception->getErrors())); |
||
| 24 | self::assertEquals($errors, $exception->getErrors()); |
||
| 25 | } |
||
| 26 | |||
| 27 | public function testNewExceptionWithMessageAndArray() |
||
| 35 | } |
||
| 36 | } |
||
| 37 |