Fix tests wrt. internationalization

This commit is contained in:
Christoph M. Becker 2019-04-12 13:05:16 +02:00
parent 3b53d28e60
commit d07a6fdedf
3 changed files with 7 additions and 7 deletions

View file

@ -88,7 +88,7 @@ if (!$res->execute(array(false))) {
} else { } else {
print_r($res->fetchAll(PDO::FETCH_ASSOC)); print_r($res->fetchAll(PDO::FETCH_ASSOC));
} }
--EXPECT-- --EXPECTF--
Array Array
( (
[0] => Array [0] => Array
@ -117,7 +117,7 @@ Array
( (
[0] => 22P02 [0] => 22P02
[1] => 7 [1] => 7
[2] => ERROR: invalid input syntax for type boolean: "" [2] => %s: %sboolean%s
) )
EMUL EMUL
Array Array
@ -148,5 +148,5 @@ Array
( (
[0] => 22P02 [0] => 22P02
[1] => 7 [1] => 7
[2] => ERROR: invalid input syntax for type boolean: "" [2] => %s: %sboolean%s
) )

View file

@ -259,7 +259,7 @@ array(6) {
NULL NULL
} }
Testing pgsqlCopyFromArray() with error 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 Testing pgsqlCopyFromFile() with default parameters
bool(true) bool(true)
array(6) { array(6) {
@ -393,6 +393,6 @@ array(6) {
NULL NULL
} }
Testing pgsqlCopyFromFile() with error 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 Testing pgsqlCopyFromFile() with non existing file
Exception: SQLSTATE[HY000]: General error: 7 Unable to open the file Exception: SQLSTATE[HY000]: General error: 7 Unable to open the file

View file

@ -116,7 +116,7 @@ array(3) {
" "
} }
Testing pgsqlCopyToArray() with error 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 Testing pgsqlCopyToFile() with default parameters
bool(true) bool(true)
0 test insert 0 \N 0 test insert 0 \N
@ -133,6 +133,6 @@ bool(true)
1;NULL 1;NULL
2;NULL 2;NULL
Testing pgsqlCopyToFile() with error 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 Testing pgsqlCopyToFile() to unwritable file
Exception: SQLSTATE[HY000]: General error: 7 Unable to open the file for writing Exception: SQLSTATE[HY000]: General error: 7 Unable to open the file for writing