Author: chabotc
Date: Thu Dec 11 11:12:15 2008
New Revision: 725788

URL: http://svn.apache.org/viewvc?rev=725788&view=rev
Log:
Fix up the xml and atom output unit tests

Modified:
    
incubator/shindig/branches/1.0.x-incubating/php/test/social/OutputAtomConverterTest.php
    
incubator/shindig/branches/1.0.x-incubating/php/test/social/OutputXmlConverterTest.php

Modified: 
incubator/shindig/branches/1.0.x-incubating/php/test/social/OutputAtomConverterTest.php
URL: 
http://svn.apache.org/viewvc/incubator/shindig/branches/1.0.x-incubating/php/test/social/OutputAtomConverterTest.php?rev=725788&r1=725787&r2=725788&view=diff
==============================================================================
--- 
incubator/shindig/branches/1.0.x-incubating/php/test/social/OutputAtomConverterTest.php
 (original)
+++ 
incubator/shindig/branches/1.0.x-incubating/php/test/social/OutputAtomConverterTest.php
 Thu Dec 11 11:12:15 2008
@@ -60,23 +60,22 @@
     ob_start();
     $outputConverter->outputResponse($responseItem, $requestItem);
     $output = ob_get_clean();
-    $expected = '<?xml version="1.0" encoding="UTF-8"?>
-<entry xmlns="http://www.w3.org/2005/Atom";>
+    $expected = '<entry xmlns="http://www.w3.org/2005/Atom";>
   <title>person entry for shindig:1</title>
   <author>
     <uri>urn:guid:1</uri>
     <name>shindig:1</name>
   </author>
   <id>urn:guid:1</id>
-  <updated>2008-11-17T11:24:39-08:00</updated>
+
+  <updated>2008-12-11T19:58:31+01:00</updated>
   <content type="application/xml">
     <person xmlns="http://ns.opensocial.org/2008/opensocial";>
-      <entry>
-        <isOwner></isOwner>
-        <isViewer></isViewer>
-        <displayName>1 1</displayName>
-        <id>1</id>
-      </entry>
+      <isOwner></isOwner>
+      <isViewer></isViewer>
+      <displayName>1 1</displayName>
+      <id>1</id>
+
     </person>
   </content>
 </entry>

Modified: 
incubator/shindig/branches/1.0.x-incubating/php/test/social/OutputXmlConverterTest.php
URL: 
http://svn.apache.org/viewvc/incubator/shindig/branches/1.0.x-incubating/php/test/social/OutputXmlConverterTest.php?rev=725788&r1=725787&r2=725788&view=diff
==============================================================================
--- 
incubator/shindig/branches/1.0.x-incubating/php/test/social/OutputXmlConverterTest.php
 (original)
+++ 
incubator/shindig/branches/1.0.x-incubating/php/test/social/OutputXmlConverterTest.php
 Thu Dec 11 11:12:15 2008
@@ -62,14 +62,12 @@
     $output = ob_get_clean();
     $expected = '<?xml version="1.0" encoding="UTF-8"?>
 <response>
-  <person>
-    <entry>
-      <isOwner></isOwner>
-      <isViewer></isViewer>
-      <displayName>1 1</displayName>
-      <id>1</id>
-    </entry>
-  </person>
+  <entry>
+    <isOwner></isOwner>
+    <isViewer></isViewer>
+    <displayName>1 1</displayName>
+    <id>1</id>
+  </entry>
 </response>
 ';
     $this->assertEquals($expected, $output);


Reply via email to