Fixing a group test case to show how to create one, and to make pass TestManager test case

This commit is contained in:
José Lorenzo Rodríguez 2010-05-04 23:58:17 -04:30
parent fd4a82d6e9
commit b53d21ff52
2 changed files with 4 additions and 4 deletions

View file

@ -28,7 +28,7 @@ App::import('Helper', 'Xml');
* @package cake
* @subpackage cake.tests.cases.libs.view.helpers
*/
class TestXml extends Object {
class TestXmlHelper extends Object {
/**
* content property

View file

@ -26,7 +26,7 @@
* @package cake
* @subpackage cake.tests.groups
*/
class XmlGroupTest extends TestSuite {
class XmlGroupTest extends PHPUnit_Framework_TestSuite {
/**
* label property
@ -37,12 +37,12 @@ class XmlGroupTest extends TestSuite {
public $label = 'Xml based classes (Xml, XmlHelper and RssHelper)';
/**
* XmlGroupTest method
* __construct method
*
* @access public
* @return void
*/
function XmlGroupTest() {
function __construct() {
TestManager::addTestFile($this, CORE_TEST_CASES . DS . 'libs' . DS . 'xml');
TestManager::addTestFile($this, CORE_TEST_CASES . DS . 'libs' . DS . 'view' . DS . 'helpers' . DS .'rss');
TestManager::addTestFile($this, CORE_TEST_CASES . DS . 'libs' . DS . 'view' . DS . 'helpers' . DS .'xml');