Skip to content

Commit

Permalink
Chaning tests of Xml to public.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbasso committed Sep 1, 2010
1 parent edcb5e4 commit 26b514e
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions cake/tests/cases/libs/xml.test.php
Expand Up @@ -30,10 +30,9 @@ class XmlTest extends CakeTestCase {
/**
* testBuild method
*
* @access public
* @return void
*/
function testBuild() {
public function testBuild() {
$xml = '<tag>value</tag>';
$obj = Xml::build($xml);
$this->assertTrue($obj instanceof SimpleXMLElement);
Expand Down Expand Up @@ -77,17 +76,16 @@ public static function invalidDataProvider() {
* @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');
Expand Down Expand Up @@ -258,17 +256,16 @@ public static function invalidArrayDataProvider() {
* @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 = '<tag>name</tag>';
$obj = Xml::build($xml);
$this->assertEqual(Xml::toArray($obj), array('tag' => 'name'));
Expand Down Expand Up @@ -411,7 +408,7 @@ function testToArray() {
*
* @return void
*/
function testToArrayRss() {
public function testToArrayRss() {
$rss = <<<EOF
<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
Expand Down Expand Up @@ -479,7 +476,7 @@ public static function invalidToArrayDataProvider() {
* @dataProvider invalidToArrayDataProvider
* @expectedException Exception
*/
function testToArrayFail($value) {
public function testToArrayFail($value) {
Xml::toArray($value);
}

Expand Down

0 comments on commit 26b514e

Please sign in to comment.