diff --git a/cake/tests/cases/libs/xml.test.php b/cake/tests/cases/libs/xml.test.php
index 7d83aa68d..2f03714a4 100644
--- a/cake/tests/cases/libs/xml.test.php
+++ b/cake/tests/cases/libs/xml.test.php
@@ -27,6 +27,7 @@
* @license http://www.opensource.org/licenses/opengroup.php The Open Group Test Suite License
*/
uses('xml');
+
/**
* Short description for class.
*
@@ -47,8 +48,50 @@ class XMLNodeTest extends UnitTestCase {
*/
class XMLTest extends UnitTestCase {
- function skip() {
- $this->skipif (true, 'XMLTest not implemented');
+ function testSerialization() {
+ $input = array(
+ array(
+ 'Project' => array(
+ 'id' => 1,
+ 'title' => null,
+ 'client_id' => 1,
+ 'show' => 1,
+ 'is_spotlight' => null,
+ 'style_id' => 0,
+ 'job_type_id' => 1,
+ 'industry_id' => 1,
+ 'modified' => null,
+ 'created' => null
+ ),
+ 'Style' => array('id' => null, 'name' => null),
+ 'JobType' => array('id' => 1, 'name' => 'Touch Screen Kiosk'),
+ 'Industry' => array('id' => 1, 'name' => 'Financial')
+ ),
+ array(
+ 'Project' => array(
+ 'id' => 2,
+ 'title' => null,
+ 'client_id' => 2,
+ 'show' => 1,
+ 'is_spotlight' => null,
+ 'style_id' => 0,
+ 'job_type_id' => 2,
+ 'industry_id' => 2,
+ 'modified' => '2007-11-26 14:48:36',
+ 'created' => null
+ ),
+ 'Style' => array('id' => null, 'name' => null),
+ 'JobType' => array('id' => 2, 'name' => 'Awareness Campaign'),
+ 'Industry' => array('id' => 2, 'name' => 'Education')
+ )
+ );
+ $expected = '';
+
+ $xml = new XML($input);
+ $result = $xml->compose(false);
+ $result = preg_replace("/\n/",'', $result);
+ $this->assertEqual($expected, $result);
}
}
+
?>
\ No newline at end of file