2008-05-30 11:40:08 +00:00
|
|
|
<?php
|
|
|
|
/**
|
2009-03-21 23:55:39 +00:00
|
|
|
* NoCrossContaminationGroupTest file
|
2008-05-30 11:40:08 +00:00
|
|
|
*
|
|
|
|
* PHP versions 4 and 5
|
|
|
|
*
|
2010-05-19 01:15:13 +00:00
|
|
|
* CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
|
2011-05-31 02:46:14 +00:00
|
|
|
* Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
|
2008-05-30 11:40:08 +00:00
|
|
|
*
|
|
|
|
* Licensed under The Open Group Test Suite License
|
|
|
|
* Redistributions of files must retain the above copyright notice.
|
|
|
|
*
|
2011-05-31 02:46:14 +00:00
|
|
|
* @copyright Copyright 2005-2011, Cake Software Foundation, Inc. (http://cakefoundation.org)
|
2010-05-19 01:15:13 +00:00
|
|
|
* @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
|
2009-03-18 17:55:58 +00:00
|
|
|
* @package cake
|
2008-10-30 17:30:26 +00:00
|
|
|
* @subpackage cake.tests.groups
|
|
|
|
* @since CakePHP(tm) v 1.2.0.4206
|
|
|
|
* @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License
|
2008-05-30 11:40:08 +00:00
|
|
|
*/
|
2009-07-24 19:18:37 +00:00
|
|
|
|
2008-05-30 11:40:08 +00:00
|
|
|
/**
|
2009-03-21 23:55:39 +00:00
|
|
|
* NoCrossContaminationGroupTest class
|
|
|
|
*
|
|
|
|
* This test group will run all tests
|
|
|
|
* that are proper isolated to be run in sequence
|
|
|
|
* without affected each other
|
2008-05-30 11:40:08 +00:00
|
|
|
*
|
2009-03-18 17:55:58 +00:00
|
|
|
* @package cake
|
2008-10-30 17:30:26 +00:00
|
|
|
* @subpackage cake.tests.groups
|
2008-05-30 11:40:08 +00:00
|
|
|
*/
|
2009-09-12 01:43:53 +00:00
|
|
|
class NoCrossContaminationGroupTest extends TestSuite {
|
2009-07-24 19:18:37 +00:00
|
|
|
|
2008-06-02 19:22:55 +00:00
|
|
|
/**
|
|
|
|
* label property
|
2008-11-08 02:58:37 +00:00
|
|
|
*
|
2009-03-21 23:55:39 +00:00
|
|
|
* @var string
|
|
|
|
* @access public
|
|
|
|
*/
|
|
|
|
var $label = 'No Cross Contamination';
|
2009-07-24 19:18:37 +00:00
|
|
|
|
2009-03-21 23:55:39 +00:00
|
|
|
/**
|
|
|
|
* blacklist property
|
|
|
|
*
|
|
|
|
* @var string
|
2008-06-02 19:22:55 +00:00
|
|
|
* @access public
|
|
|
|
*/
|
2009-03-21 23:55:39 +00:00
|
|
|
var $blacklist = array('cake_test_case.test.php', 'object.test.php');
|
2009-07-24 19:18:37 +00:00
|
|
|
|
2008-06-05 15:20:45 +00:00
|
|
|
/**
|
2009-03-21 23:55:39 +00:00
|
|
|
* NoCrossContaminationGroupTest method
|
2008-11-08 02:58:37 +00:00
|
|
|
*
|
2008-06-05 15:20:45 +00:00
|
|
|
* @access public
|
|
|
|
* @return void
|
|
|
|
*/
|
2009-03-21 23:55:39 +00:00
|
|
|
function NoCrossContaminationGroupTest() {
|
|
|
|
App::import('Core', 'Folder');
|
|
|
|
|
|
|
|
$Folder = new Folder(CORE_TEST_CASES);
|
|
|
|
|
|
|
|
foreach ($Folder->findRecursive('.*\.test\.php', true) as $file) {
|
|
|
|
if (in_array(basename($file), $this->blacklist)) {
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
TestManager::addTestFile($this, $file);
|
|
|
|
}
|
2008-05-30 11:40:08 +00:00
|
|
|
}
|
|
|
|
}
|