com php-src: Attempt to fix tests fails: ext/pgsql/tests/14 pg_update.phpt ext/pgsql/tests/15pg_delete.phpt ext/pgsql/tests/bug46408.phpt
| From: | Xinchen Hui | Date: | Tue, 31 May 2016 08:48:19 +0000 |
| Subject: | com php-src: Attempt to fix tests fails: ext/pgsql/tests/14 pg_update.phpt ext/pgsql/tests/15pg_delete.phpt ext/pgsql/tests/bug46408.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-92253@lists.php.net to get a copy of this message | ||
Commit: 072bc589fc79a662a00480937d496deb1497b12e
Author: Xinchen Hui <laruence@gmail.com> Tue, 31 May 2016 16:48:19 +0800
Parents: d1dd9b4558e9c1b2e86887f99c009063ee3eb5f4
Branches: PHP-7.0 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=072bc589fc79a662a00480937d496deb1497b12e
Log:
Attempt to fix tests fails
Changed paths:
M ext/pgsql/tests/14pg_update.phpt
M ext/pgsql/tests/15pg_delete.phpt
M ext/pgsql/tests/bug46408.phpt
Diff:
diff --git a/ext/pgsql/tests/14pg_update.phpt b/ext/pgsql/tests/14pg_update.phpt
index d804574..843dbac 100644
--- a/ext/pgsql/tests/14pg_update.phpt
+++ b/ext/pgsql/tests/14pg_update.phpt
@@ -23,4 +23,5 @@ echo "Ok\n";
?>
--EXPECT--
UPDATE "php_pgsql_test" SET
"num"=1234,"str"=E'ABC',"bin"=E'XYZ' WHERE
"num"=1234;
-Ok
\ No newline at end of file
+UPDATE "php_pgsql_test" SET
"num='1234',"str='ABC',"bin='XYZ' WHERE
"num='1234';
+Ok
diff --git a/ext/pgsql/tests/15pg_delete.phpt b/ext/pgsql/tests/15pg_delete.phpt
index 3b9f7d8..86e8ac2 100644
--- a/ext/pgsql/tests/15pg_delete.phpt
+++ b/ext/pgsql/tests/15pg_delete.phpt
@@ -23,5 +23,5 @@ else {
?>
--EXPECT--
DELETE FROM "php_pgsql_test" WHERE "num"=1234;
-DELETE FROM "php_pgsql_test" WHERE "num"='1234';
+DELETE FROM "php_pgsql_test" WHERE "num='1234';
Ok
diff --git a/ext/pgsql/tests/bug46408.phpt b/ext/pgsql/tests/bug46408.phpt
index bf84290..5803347 100644
--- a/ext/pgsql/tests/bug46408.phpt
+++ b/ext/pgsql/tests/bug46408.phpt
@@ -14,7 +14,7 @@ require_once('config.inc');
$dbh = pg_connect($conn_str);
setlocale(LC_ALL, 'hr_HR.utf-8', 'hr_HR');
-echo 3.5.PHP_EOL;
+echo 3.5 , "\n";
pg_query_params("SELECT $1::numeric", array(3.5));
pg_close($dbh);