Skip to content

Commit

Permalink
Fix tests wrt. internationalization
Browse files Browse the repository at this point in the history
  • Loading branch information
cmb69 committed Apr 12, 2019
1 parent 3b53d28 commit d07a6fd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions ext/pdo_pgsql/tests/bug_33876.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ if (!$res->execute(array(false))) {
} else {
print_r($res->fetchAll(PDO::FETCH_ASSOC));
}
--EXPECT--
--EXPECTF--
Array
(
[0] => Array
Expand Down Expand Up @@ -117,7 +117,7 @@ Array
(
[0] => 22P02
[1] => 7
[2] => ERROR: invalid input syntax for type boolean: ""
[2] => %s: %sboolean%s
)
EMUL
Array
Expand Down Expand Up @@ -148,5 +148,5 @@ Array
(
[0] => 22P02
[1] => 7
[2] => ERROR: invalid input syntax for type boolean: ""
[2] => %s: %sboolean%s
)
4 changes: 2 additions & 2 deletions ext/pdo_pgsql/tests/copy_from.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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
4 changes: 2 additions & 2 deletions ext/pdo_pgsql/tests/copy_to.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit d07a6fd

Please sign in to comment.