|
|
@@ -133,7 +133,7 @@ class XmlTest extends CakeTestCase {
|
|
|
$this->assertEqual($obj->firstChild->nodeName, 'tag');
|
|
|
$this->assertEqual($obj->firstChild->nodeValue, 'value');
|
|
|
|
|
|
- $xml = LIBS . 'tests' . DS . 'Fixture' . DS . 'sample.xml';
|
|
|
+ $xml = LIBS . 'Test' . DS . 'Fixture' . DS . 'sample.xml';
|
|
|
$obj = Xml::build($xml);
|
|
|
$this->assertEqual($obj->getName(), 'tags');
|
|
|
$this->assertEqual(count($obj), 2);
|
|
|
@@ -374,7 +374,7 @@ class XmlTest extends CakeTestCase {
|
|
|
$obj = Xml::build($xml);
|
|
|
$this->assertEqual(Xml::toArray($obj), array('tag' => 'name'));
|
|
|
|
|
|
- $xml = LIBS . 'tests' . DS . 'Fixture' . DS . 'sample.xml';
|
|
|
+ $xml = LIBS . 'Test' . DS . 'Fixture' . DS . 'sample.xml';
|
|
|
$obj = Xml::build($xml);
|
|
|
$expected = array(
|
|
|
'tags' => array(
|
|
|
@@ -516,7 +516,7 @@ class XmlTest extends CakeTestCase {
|
|
|
* @return void
|
|
|
*/
|
|
|
public function testRss() {
|
|
|
- $rss = file_get_contents(LIBS . 'tests' . DS . 'Fixture' . DS . 'rss.xml');
|
|
|
+ $rss = file_get_contents(LIBS . 'Test' . DS . 'Fixture' . DS . 'rss.xml');
|
|
|
$rssAsArray = Xml::toArray(Xml::build($rss));
|
|
|
$this->assertEqual($rssAsArray['rss']['@version'], '2.0');
|
|
|
$this->assertEqual(count($rssAsArray['rss']['channel']['item']), 2);
|
|
|
@@ -647,7 +647,7 @@ class XmlTest extends CakeTestCase {
|
|
|
* @return void
|
|
|
*/
|
|
|
public function testSoap() {
|
|
|
- $xmlRequest = Xml::build(LIBS . 'tests' . DS . 'Fixture' . DS . 'soap_request.xml');
|
|
|
+ $xmlRequest = Xml::build(LIBS . 'Test' . DS . 'Fixture' . DS . 'soap_request.xml');
|
|
|
$expected = array(
|
|
|
'Envelope' => array(
|
|
|
'@soap:encodingStyle' => 'http://www.w3.org/2001/12/soap-encoding',
|
|
|
@@ -660,7 +660,7 @@ class XmlTest extends CakeTestCase {
|
|
|
);
|
|
|
$this->assertEqual(Xml::toArray($xmlRequest), $expected);
|
|
|
|
|
|
- $xmlResponse = Xml::build(LIBS . 'tests' . DS . 'Fixture' . DS . 'soap_response.xml');
|
|
|
+ $xmlResponse = Xml::build(LIBS . 'Test' . DS . 'Fixture' . DS . 'soap_response.xml');
|
|
|
$expected = array(
|
|
|
'Envelope' => array(
|
|
|
'@soap:encodingStyle' => 'http://www.w3.org/2001/12/soap-encoding',
|