another attempt; make Logger friend to php 5.3
[plcapi.git] / tests / 1ParsingBugsTest.php
index 1e4b040..10b5acb 100644 (file)
@@ -618,12 +618,12 @@ and there they were.</value></member><member><name>postid</name><value>7414222</
 
         foreach($v1 as $key => $val)
         {
-            $this->assertContains($key, $out);
+            $this->assertArrayHasKey($key, $out);
             $expected = $out[$key];
-            if (gettype($expected['value']) == 'array') {
+            if (gettype($expected) == 'array') {
                 $this->assertequals('array', gettype($val));
             } else {
-                $this->assertequals($expected['value'], $val);
+                $this->assertequals($expected, $val);
             }
         }