From: Antony Dovgal Date: Tue, 20 Jun 2006 19:12:12 +0000 (+0000) Subject: fix test X-Git-Tag: RELEASE_1_0_0RC1~2682 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3d0e1456e4133a6c2fdc138830bddbb2ad327b96;p=php fix test --- diff --git a/ext/simplexml/tests/031.phpt b/ext/simplexml/tests/031.phpt index 3d6a57127a..28d87b0a38 100644 --- a/ext/simplexml/tests/031.phpt +++ b/ext/simplexml/tests/031.phpt @@ -56,13 +56,13 @@ Warning: SimpleXMLElement::addChild(): Cannot add element to attributes in %s031 myvalmyvalmyvalmyvalmyval ===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 + + + test + test 2 + +myvalmyvalmyvalmyvalmyval +===DONE=== diff --git a/ext/sqlite/tests/sqlite_004.phpt b/ext/sqlite/tests/sqlite_004.phpt index 4010066578..718e11c4dd 100644 --- a/ext/sqlite/tests/sqlite_004.phpt +++ b/ext/sqlite/tests/sqlite_004.phpt @@ -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]); diff --git a/ext/standard/tests/math/bug27646.phpt b/ext/standard/tests/math/bug27646.phpt index 7b4a923f1f..92456da7f6 100755 --- a/ext/standard/tests/math/bug27646.phpt +++ b/ext/standard/tests/math/bug27646.phpt @@ -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)