]> granicus.if.org Git - php/commitdiff
fix test
authorAntony Dovgal <tony2001@php.net>
Tue, 20 Jun 2006 19:12:12 +0000 (19:12 +0000)
committerAntony Dovgal <tony2001@php.net>
Tue, 20 Jun 2006 19:12:12 +0000 (19:12 +0000)
ext/simplexml/tests/031.phpt
ext/sqlite/tests/sqlite_004.phpt
ext/standard/tests/math/bug27646.phpt

index 3d6a57127af3811ca80ef678443713c94aa132fc..28d87b0a38ae678a98e41f90ad4f12c664773b1e 100644 (file)
@@ -56,13 +56,13 @@ Warning: SimpleXMLElement::addChild(): Cannot add element to attributes in %s031
 <s:test1>myval</s:test1><m:test2 xmlns:m="urn::testnew">myval</m:test2><test3 xmlns="urn::testnew">myval</test3><test4>myval</test4><test5>myval</test5></root>
 ===DONE===
 --UEXPECTF--
-unicode(3) "Joe"
-int(3)
-int(0)
-unicode(4) "John"
-int(3)
-int(1)
-unicode(4) "Jane"
-int(3)
-int(0)
-===DONE===
\ No newline at end of file
+Warning: SimpleXMLElement::addAttribute(): Attribute already exists in %s on line %d
+
+Warning: SimpleXMLElement::addChild(): Cannot add element to attributes in %s on line %d
+<?xml version="1.0"?>
+<root xmlns:s="urn::test" xmlns:t="urn::test-t" xmlns:v="urn::test-v" s:att1="b" att1="a" v:att11="xxx" att2="no-ns">
+   <child1>test</child1>
+   <child1>test 2</child1>
+   <s:child3/>
+<s:test1>myval</s:test1><m:test2 xmlns:m="urn::testnew">myval</m:test2><test3 xmlns="urn::testnew">myval</test3><test4>myval</test4><test5>myval</test5></root>
+===DONE===
index 4010066578cbfcc3d127641f09276b72cc59012c..718e11c4dd0ebd628b2e0651eb52f2f8b8cf7a37 100644 (file)
@@ -26,7 +26,7 @@ foreach ($strings as $str) {
 $i = 0;
 $r = sqlite_query("SELECT * from strings", $db);
 while ($row = sqlite_fetch_array($r, SQLITE_NUM)) {
-       if ($row[0] !== $strings[$i]) {
+       if ($row[0] != $strings[$i]) {
                echo "FAIL!\n";
                var_dump($row[0]);
                var_dump($strings[$i]);
index 7b4a923f1f011222947f62cdf35a3678399c6350..92456da7f6983ac611880be9b3ec0fde6325437b 100755 (executable)
@@ -46,3 +46,19 @@ float(INF)
 float(NAN)
 string(6) "d:NAN;"
 float(NAN)
+--UEXPECTF--
+float(1%f)
+unicode(%d) "d:1%s;"
+float(1%f)
+float(-1%f)
+unicode(%d) "d:-1%s;"
+float(-1%f)
+float(-INF)
+unicode(7) "d:-INF;"
+float(-INF)
+float(INF)
+unicode(6) "d:INF;"
+float(INF)
+float(NAN)
+unicode(6) "d:NAN;"
+float(NAN)