mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Updating Helper group test.
This commit is contained in:
parent
535c92dee1
commit
629c0aeb37
1 changed files with 6 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue