Skip to content

Commit d07a6fd

Browse files
committed
Fix tests wrt. internationalization
1 parent 3b53d28 commit d07a6fd

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

ext/pdo_pgsql/tests/bug_33876.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ if (!$res->execute(array(false))) {
8888
} else {
8989
print_r($res->fetchAll(PDO::FETCH_ASSOC));
9090
}
91-
--EXPECT--
91+
--EXPECTF--
9292
Array
9393
(
9494
[0] => Array
@@ -117,7 +117,7 @@ Array
117117
(
118118
[0] => 22P02
119119
[1] => 7
120-
[2] => ERROR: invalid input syntax for type boolean: ""
120+
[2] => %s: %sboolean%s
121121
)
122122
EMUL
123123
Array
@@ -148,5 +148,5 @@ Array
148148
(
149149
[0] => 22P02
150150
[1] => 7
151-
[2] => ERROR: invalid input syntax for type boolean: ""
151+
[2] => %s: %sboolean%s
152152
)

ext/pdo_pgsql/tests/copy_from.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ array(6) {
259259
NULL
260260
}
261261
Testing pgsqlCopyFromArray() with error
262-
Exception: SQLSTATE[42P01]: Undefined table: 7 %s: %s "test_error" %s
262+
Exception: SQLSTATE[42P01]: Undefined table: 7 %s: %stest_error%s
263263
Testing pgsqlCopyFromFile() with default parameters
264264
bool(true)
265265
array(6) {
@@ -393,6 +393,6 @@ array(6) {
393393
NULL
394394
}
395395
Testing pgsqlCopyFromFile() with error
396-
Exception: SQLSTATE[42P01]: Undefined table: 7 %s: %s "test_error" %s
396+
Exception: SQLSTATE[42P01]: Undefined table: 7 %s: %stest_error%s
397397
Testing pgsqlCopyFromFile() with non existing file
398398
Exception: SQLSTATE[HY000]: General error: 7 Unable to open the file

ext/pdo_pgsql/tests/copy_to.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ array(3) {
116116
"
117117
}
118118
Testing pgsqlCopyToArray() with error
119-
Exception: SQLSTATE[42P01]: Undefined table: 7 %s: %s "test_error" %s
119+
Exception: SQLSTATE[42P01]: Undefined table: 7 %s: %stest_error%s
120120
Testing pgsqlCopyToFile() with default parameters
121121
bool(true)
122122
0 test insert 0 \N
@@ -133,6 +133,6 @@ bool(true)
133133
1;NULL
134134
2;NULL
135135
Testing pgsqlCopyToFile() with error
136-
Exception: SQLSTATE[42P01]: Undefined table: 7 %s: %s "test_error" %s
136+
Exception: SQLSTATE[42P01]: Undefined table: 7 %s: %stest_error%s
137137
Testing pgsqlCopyToFile() to unwritable file
138138
Exception: SQLSTATE[HY000]: General error: 7 Unable to open the file for writing

0 commit comments

Comments
 (0)