another attempt at fixing tests
authorgggeek <giunta.gaetano@gmail.com>
Sat, 20 Jan 2018 14:42:30 +0000 (14:42 +0000)
committergggeek <giunta.gaetano@gmail.com>
Sat, 20 Jan 2018 14:42:30 +0000 (14:42 +0000)
tests/1ParsingBugsTest.php

index 1e4b040..e4e9b5a 100644 (file)
@@ -618,7 +618,7 @@ 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') {
                 $this->assertequals('array', gettype($val));