Skip to content

Commit

Permalink
Updating Helper group test.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jun 13, 2010
1 parent 535c92d commit 629c0ae
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions cake/tests/groups/helpers.group.php
Expand Up @@ -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;
}
}

0 comments on commit 629c0ae

Please sign in to comment.