From 26b514e2cd90dde4e4535fac9da2c903dcfe96c5 Mon Sep 17 00:00:00 2001 From: Juan Basso Date: Wed, 1 Sep 2010 20:09:03 -0300 Subject: [PATCH] Chaning tests of Xml to public. --- cake/tests/cases/libs/xml.test.php | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/cake/tests/cases/libs/xml.test.php b/cake/tests/cases/libs/xml.test.php index a04a38b3c..77c735333 100644 --- a/cake/tests/cases/libs/xml.test.php +++ b/cake/tests/cases/libs/xml.test.php @@ -30,10 +30,9 @@ class XmlTest extends CakeTestCase { /** * testBuild method * - * @access public * @return void */ - function testBuild() { + public function testBuild() { $xml = 'value'; $obj = Xml::build($xml); $this->assertTrue($obj instanceof SimpleXMLElement); @@ -77,17 +76,16 @@ class XmlTest extends CakeTestCase { * @expectedException Exception * return void */ - function testBuildInvalidData($value) { + public function testBuildInvalidData($value) { Xml::build($value); } /** * testFromArray method * - * @access public * @return void */ - function testFromArray() { + public function testFromArray() { $xml = array('tag' => 'value'); $obj = Xml::fromArray($xml); $this->assertEqual($obj->getName(), 'tag'); @@ -258,17 +256,16 @@ class XmlTest extends CakeTestCase { * @dataProvider invalidArrayDataProvider * @expectedException Exception */ - function testFromArrayFail($value) { + public function testFromArrayFail($value) { Xml::fromArray($value); } /** * testToArray method * - * @access public * @return void */ - function testToArray() { + public function testToArray() { $xml = 'name'; $obj = Xml::build($xml); $this->assertEqual(Xml::toArray($obj), array('tag' => 'name')); @@ -411,7 +408,7 @@ class XmlTest extends CakeTestCase { * * @return void */ - function testToArrayRss() { + public function testToArrayRss() { $rss = << @@ -479,7 +476,7 @@ EOF; * @dataProvider invalidToArrayDataProvider * @expectedException Exception */ - function testToArrayFail($value) { + public function testToArrayFail($value) { Xml::toArray($value); }