diff options
author | Bharat Mediratta <bharat@menalto.com> | 2013-03-06 17:04:54 -0500 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2013-03-06 17:04:54 -0500 |
commit | 59ea4a6a312d2891bb51bd2670635637924f7dcf (patch) | |
tree | 96eadeb37cc72d0492fdb5b5605d3cac1d43deac | |
parent | 97a156d530b22d190f2c227105fd279a049ac76d (diff) |
Follow-on fix: count errors as well as test failures.
-rw-r--r-- | modules/gallery_unit_test/controllers/gallery_unit_test.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery_unit_test/controllers/gallery_unit_test.php b/modules/gallery_unit_test/controllers/gallery_unit_test.php index 5dd086b9..3275d741 100644 --- a/modules/gallery_unit_test/controllers/gallery_unit_test.php +++ b/modules/gallery_unit_test/controllers/gallery_unit_test.php @@ -147,7 +147,7 @@ class Gallery_Unit_Test_Controller extends Controller { $failed = 0; foreach ($unit_test->stats as $class => $stats) { - $failed += $stats["failed"]; + $failed += ($stats["failed"] + $stats["errors"]); } if (PHP_SAPI == 'cli') { exit($failed); |