From 59ea4a6a312d2891bb51bd2670635637924f7dcf Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Wed, 6 Mar 2013 17:04:54 -0500 Subject: Follow-on fix: count errors as well as test failures. --- modules/gallery_unit_test/controllers/gallery_unit_test.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/gallery_unit_test/controllers') 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); -- cgit v1.2.3