More Unit Tests + Initializer fix

- added unit test for Router\Forms
- updated unit test for Model\Segment to reflect changes
This commit is contained in:
Jonathan Labreuille
2016-02-02 17:22:11 +01:00
parent 24ecc879d3
commit a2ef62302f
10 changed files with 213 additions and 33 deletions

View File

@ -21,8 +21,9 @@ class Model extends \Sudzy\ValidModel {
} catch (\Sudzy\ValidationException $e) {
return array_unique($e->getValidationErrors());
} catch (\PDOException $e) {
return $e->getMessage();
return array($e->getMessage());
}
return false;
}
function trash() {