diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-01-17 18:09:31 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-01-17 18:09:31 -0800 |
commit | 3ef22d9d1a42e6f4ac1ebf32bceceb0e6fa03b4d (patch) | |
tree | e079b526573ffa5a7e75060a9c92efd9b6412153 | |
parent | 5162e35d499e8f57f2cff8eefeb633538aad8a65 (diff) |
Add special output support for ORM_Validation_Exception
-rw-r--r-- | modules/gallery_unit_test/views/kohana_unit_test_cli.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/gallery_unit_test/views/kohana_unit_test_cli.php b/modules/gallery_unit_test/views/kohana_unit_test_cli.php index 3203ee44..a0de0f52 100644 --- a/modules/gallery_unit_test/views/kohana_unit_test_cli.php +++ b/modules/gallery_unit_test/views/kohana_unit_test_cli.php @@ -57,6 +57,12 @@ foreach ($results as $class => $methods) { if ($result->getMessage()) { echo " ", $result->getMessage(), "\n"; } + if ($result instanceof ORM_Validation_Exception) { + echo " Validation errors:\n"; + foreach ($result->validation->errors() as $key => $value) { + echo " $key: $value\n"; + } + } echo " ", $result->getFile(), " (Line ", $result->getLine(), ")\n"; echo "\n"; echo $result->getTraceAsString(), "\n"; |