Skip to content
Permalink
Browse files

Chaning tests of Xml to public.

  • Loading branch information...
jrbasso committed Sep 1, 2010
1 parent edcb5e4 commit 26b514e2cd90dde4e4535fac9da2c903dcfe96c5
Showing with 7 additions and 10 deletions.
  1. +7 −10 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 = '<tag>value</tag>';
$obj = Xml::build($xml);
$this->assertTrue($obj instanceof SimpleXMLElement);
@@ -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');
@@ -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'));
@@ -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">
@@ -479,7 +476,7 @@ public static function invalidToArrayDataProvider() {
* @dataProvider invalidToArrayDataProvider
* @expectedException Exception
*/
function testToArrayFail($value) {
public function testToArrayFail($value) {
Xml::toArray($value);
}

0 comments on commit 26b514e

Please sign in to comment.
You can’t perform that action at this time.