com php-src: Fix tests wrt. internationalization: ext/pdo_pgs ql/tests/bug_33876.phpt ext/pdo_pgsql/tests/c opy_from.phpt
ext/pdo_pgsql/tests/copy_to.phpt

From: Date: Fri, 12 Apr 2019 11:07:39 +0000
Subject: com php-src: Fix tests wrt. internationalization: ext/pdo_pgs ql/tests/bug_33876.phpt ext/pdo_pgsql/tests/c opy_from.phpt
ext/pdo_pgsql/tests/copy_to.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-105695@lists.php.net to get a copy of this message
Commit: d07a6fdedfa3d894024f33431cad10d6c64d428f Author: Christoph M. Becker <cmbecker69@gmx.de> Fri, 12 Apr 2019 13:05:16 +0200 Parents: 3b53d28e607ba60e8a25b1fca8317565eab28b77 Branches: PHP-7.2 PHP-7..3 PHP-7.4 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=d07a6fdedfa3d894024f33431cad10d6c64d428f Log: Fix tests wrt. internationalization Changed paths: M ext/pdo_pgsql/tests/bug_33876.phpt M ext/pdo_pgsql/tests/copy_from.phpt M ext/pdo_pgsql/tests/copy_to.phpt Diff: diff --git a/ext/pdo_pgsql/tests/bug_33876.phpt b/ext/pdo_pgsql/tests/bug_33876.phpt index 31a76c9..45c65c6 100644 --- a/ext/pdo_pgsql/tests/bug_33876.phpt +++ b/ext/pdo_pgsql/tests/bug_33876.phpt @@ -88,7 +88,7 @@ if (!$res->execute(array(false))) { } else { print_r($res->fetchAll(PDO::FETCH_ASSOC)); } ---EXPECT-- +--EXPECTF-- Array ( [0] => Array @@ -117,7 +117,7 @@ Array ( [0] => 22P02 [1] => 7 - [2] => ERROR: invalid input syntax for type boolean: "" + [2] => %s: %sboolean%s ) EMUL Array @@ -148,5 +148,5 @@ Array ( [0] => 22P02 [1] => 7 - [2] => ERROR: invalid input syntax for type boolean: "" + [2] => %s: %sboolean%s ) diff --git a/ext/pdo_pgsql/tests/copy_from.phpt b/ext/pdo_pgsql/tests/copy_from.phpt index 15eea01..ba48114 100644 --- a/ext/pdo_pgsql/tests/copy_from.phpt +++ b/ext/pdo_pgsql/tests/copy_from.phpt @@ -259,7 +259,7 @@ array(6) { NULL } Testing pgsqlCopyFromArray() with error -Exception: SQLSTATE[42P01]: Undefined table: 7 %s: %s "test_error" %s +Exception: SQLSTATE[42P01]: Undefined table: 7 %s: %stest_error%s Testing pgsqlCopyFromFile() with default parameters bool(true) array(6) { @@ -393,6 +393,6 @@ array(6) { NULL } Testing pgsqlCopyFromFile() with error -Exception: SQLSTATE[42P01]: Undefined table: 7 %s: %s "test_error" %s +Exception: SQLSTATE[42P01]: Undefined table: 7 %s: %stest_error%s Testing pgsqlCopyFromFile() with non existing file Exception: SQLSTATE[HY000]: General error: 7 Unable to open the file diff --git a/ext/pdo_pgsql/tests/copy_to..phpt b/ext/pdo_pgsql/tests/copy_to.phpt index 4ddce52..cbcb49c 100644 --- a/ext/pdo_pgsql/tests/copy_to.phpt +++ b/ext/pdo_pgsql/tests/copy_to.phpt @@ -116,7 +116,7 @@ array(3) { " } Testing pgsqlCopyToArray() with error -Exception: SQLSTATE[42P01]: Undefined table: 7 %s: %s "test_error" %s +Exception: SQLSTATE[42P01]: Undefined table: 7 %s: %stest_error%s Testing pgsqlCopyToFile() with default parameters bool(true) 0 test insert 0 \N @@ -133,6 +133,6 @@ bool(true) 1;NULL 2;NULL Testing pgsqlCopyToFile() with error -Exception: SQLSTATE[42P01]: Undefined table: 7 %s: %s "test_error" %s +Exception: SQLSTATE[42P01]: Undefined table: 7 %s: %stest_error%s Testing pgsqlCopyToFile() to unwritable file Exception: SQLSTATE[HY000]: General error: 7 Unable to open the file for writing

« previous php.cvs (#105695) next »