From 9725d12ccb7772965b04662fd826f7f9715ea205 Mon Sep 17 00:00:00 2001 From: Juan Basso Date: Mon, 26 Jul 2010 23:16:23 -0300 Subject: [PATCH] Adding sample.xml and changing the path in tests. --- cake/tests/cases/libs/xml.test.php | 4 ++-- cake/tests/fixtures/sample.xml | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 cake/tests/fixtures/sample.xml diff --git a/cake/tests/cases/libs/xml.test.php b/cake/tests/cases/libs/xml.test.php index 94cc987ae39..56a7951d419 100644 --- a/cake/tests/cases/libs/xml.test.php +++ b/cake/tests/cases/libs/xml.test.php @@ -43,7 +43,7 @@ function testBuild() { $xml = 'value'; $this->assertEqual($obj, Xml::build($xml)); - $xml = TEST_CAKE_CORE_INCLUDE_PATH . 'tests' . DS . 'test_app' . DS . 'webroot' . DS . 'sample.xml'; + $xml = TEST_CAKE_CORE_INCLUDE_PATH . 'tests' . DS . 'fixtures' . DS . 'sample.xml'; $obj = Xml::build($xml); $this->assertEqual($obj->getName(), 'tags'); $this->assertEqual(count($obj), 2); @@ -246,7 +246,7 @@ function testToArray() { $obj = Xml::build($xml); $this->assertEqual(Xml::toArray($obj), array('tag' => 'name')); - $xml = TEST_CAKE_CORE_INCLUDE_PATH . 'tests' . DS . 'test_app' . DS . 'webroot' . DS . 'sample.xml'; + $xml = TEST_CAKE_CORE_INCLUDE_PATH . 'tests' . DS . 'fixtures' . DS . 'sample.xml'; $obj = Xml::build($xml); $expected = array( 'tags' => array( diff --git a/cake/tests/fixtures/sample.xml b/cake/tests/fixtures/sample.xml new file mode 100644 index 00000000000..0ab267da02a --- /dev/null +++ b/cake/tests/fixtures/sample.xml @@ -0,0 +1,9 @@ + + + + defect + + + enhancement + + \ No newline at end of file