mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
First pass at moving the GroupTest to a TestSuite.
This commit is contained in:
parent
6300027a87
commit
4556b6b2a2
1 changed files with 16 additions and 4 deletions
|
@ -26,7 +26,7 @@
|
|||
* @package cake
|
||||
* @subpackage cake.tests.groups
|
||||
*/
|
||||
class HelpersGroupTest extends TestSuite {
|
||||
class HelperGroupTest extends CakeTestSuite {
|
||||
|
||||
/**
|
||||
* label property
|
||||
|
@ -42,8 +42,20 @@ class HelpersGroupTest extends TestSuite {
|
|||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
function HelpersGroupTest() {
|
||||
TestManager::addTestFile($this, CORE_TEST_CASES . DS . 'libs' . DS . 'view' . DS . 'helper');
|
||||
TestManager::addTestCasesFromDirectory($this, CORE_TEST_CASES . DS . 'libs' . DS . 'view' . DS . 'helpers');
|
||||
function __construct($theClass = '', $name = '') {
|
||||
parent::__construct($theClass, $name);
|
||||
|
||||
$this->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');
|
||||
|
||||
foreach ($helperIterator as $i => $file) {
|
||||
if (!$file->isDot() && !in_array($file->getFilename(), $segfaulty)) {
|
||||
$this->addTestfile($file->getPathname());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue