From 629c0aeb37b1a9bb66aada3ce3e6e350b391216e Mon Sep 17 00:00:00 2001 From: mark_story Date: Sat, 12 Jun 2010 23:53:14 -0400 Subject: [PATCH] Updating Helper group test. --- cake/tests/groups/helpers.group.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/cake/tests/groups/helpers.group.php b/cake/tests/groups/helpers.group.php index 0962f5644..5fe840c24 100644 --- a/cake/tests/groups/helpers.group.php +++ b/cake/tests/groups/helpers.group.php @@ -42,20 +42,21 @@ class HelperGroupTest extends CakeTestSuite { * @access public * @return void */ - function __construct($theClass = '', $name = '') { - parent::__construct($theClass, $name); + public static function suite() { + $suite = new PHPUnit_Framework_TestSuite('All Helper tests'); - $this->addTestFile(CORE_TEST_CASES . DS . 'libs' . DS . 'view' . DS . 'helper.test.php'); + $suite->addTestFile(CORE_TEST_CASES . DS . 'libs' . DS . 'view' . DS . 'helper.test.php'); $helperIterator = new DirectoryIterator(CORE_TEST_CASES . DS . 'libs' . DS . 'view' . DS . 'helpers' . DS); // The following test cases cause segfaults for me. - $segfaulty = array('form.test.php', /*'html.test.php',*/ 'cache.test.php', 'session.test.php'); + $segfaulty = array('form.test.php', 'cache.test.php', 'session.test.php'); foreach ($helperIterator as $i => $file) { if (!$file->isDot() && !in_array($file->getFilename(), $segfaulty)) { - $this->addTestfile($file->getPathname()); + $suite->addTestfile($file->getPathname()); } } + return $suite; } }