From 587284ab38a78580c4ce83735fb563aa9951e701 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Wed, 15 Dec 2010 11:17:22 -0800 Subject: Move the test time limit code into Unit_Test since some parts of the code (like ORM_MPTT) mess with the time limit which interferes with the overall time limit set in Gallery_Unit_Test_Controller. --- modules/unit_test/libraries/Unit_Test.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules/unit_test') diff --git a/modules/unit_test/libraries/Unit_Test.php b/modules/unit_test/libraries/Unit_Test.php index 46a926d8..253d6fb6 100644 --- a/modules/unit_test/libraries/Unit_Test.php +++ b/modules/unit_test/libraries/Unit_Test.php @@ -185,6 +185,8 @@ class Unit_Test_Core { $e = null; try { + // Enforce a time limit + set_time_limit(30); // Run the actual test $object->$method_name(); -- cgit v1.2.3