| Conditions | 1 |
| Paths | 1 |
| Total Lines | 21 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | public function test_run() |
||
| 16 | { |
||
| 17 | $validation = $this->generateValidationMultiFieldMultiRules(); |
||
| 18 | |||
| 19 | $this->assertFalse($validation->run()); |
||
| 20 | |||
| 21 | $this->assertEquals( |
||
| 22 | [ |
||
| 23 | 'email' => [ |
||
| 24 | 'field is required', |
||
| 25 | 'field must be a valid email address', |
||
| 26 | ], |
||
| 27 | 'password' => [ |
||
| 28 | 'field is required', |
||
| 29 | 'field may only letters and numbers', |
||
| 30 | 'field length must be greater than 5', |
||
| 31 | ], |
||
| 32 | ], |
||
| 33 | $validation->getErrors() |
||
| 34 | ); |
||
| 35 | } |
||
| 36 | |||
| 68 |