diff options
author | Xinchen Hui <laruence@gmail.com> | 2016-05-31 16:54:38 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@gmail.com> | 2016-05-31 16:55:58 +0800 |
commit | 47fa763faed867689f9a4f29cbb3c3b8568dcde0 (patch) | |
tree | 60bec348b0b76e88624401321c2ca6c1d2362ff9 /ext/pdo_pgsql/tests | |
parent | 072bc589fc79a662a00480937d496deb1497b12e (diff) | |
download | php-git-47fa763faed867689f9a4f29cbb3c3b8568dcde0.tar.gz |
Fixed test (keyword is local related)
Diffstat (limited to 'ext/pdo_pgsql/tests')
-rw-r--r-- | ext/pdo_pgsql/tests/copy_from.phpt | 6 | ||||
-rw-r--r-- | ext/pdo_pgsql/tests/copy_to.phpt | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/ext/pdo_pgsql/tests/copy_from.phpt b/ext/pdo_pgsql/tests/copy_from.phpt index de1140dfea..31d7752174 100644 --- a/ext/pdo_pgsql/tests/copy_from.phpt +++ b/ext/pdo_pgsql/tests/copy_from.phpt @@ -124,7 +124,7 @@ foreach (array($filename, $filenameWithDifferentNullValues, $filenameWithDiffere @unlink($f); } ?> ---EXPECT-- +--EXPECTF-- Preparing test file and array for CopyFrom tests Testing pgsqlCopyFromArray() with default parameters bool(true) @@ -259,7 +259,7 @@ array(6) { NULL } Testing pgsqlCopyFromArray() with error -Exception: SQLSTATE[42P01]: Undefined table: 7 ERROR: relation "test_error" does not exist +Exception: SQLSTATE[42P01]: Undefined table: 7 %s: %s "test_error" %s Testing pgsqlCopyFromFile() with default parameters bool(true) array(6) { @@ -393,7 +393,7 @@ array(6) { NULL } Testing pgsqlCopyFromFile() with error -Exception: SQLSTATE[42P01]: Undefined table: 7 ERROR: relation "test_error" does not exist +Exception: SQLSTATE[42P01]: Undefined table: 7 %s: %s "test_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 7bc46c6e0b..93aab16679 100644 --- a/ext/pdo_pgsql/tests/copy_to.phpt +++ b/ext/pdo_pgsql/tests/copy_to.phpt @@ -77,7 +77,7 @@ if(isset($filename)) { @unlink($filename); } ?> ---EXPECT-- +--EXPECTF-- Preparing test table for CopyTo tests Testing pgsqlCopyToArray() with default parameters array(3) { @@ -116,7 +116,7 @@ array(3) { " } Testing pgsqlCopyToArray() with error -Exception: SQLSTATE[42P01]: Undefined table: 7 ERROR: relation "test_error" does not exist +Exception: SQLSTATE[42P01]: Undefined table: 7 %s: %s "test_error" %s Testing pgsqlCopyToFile() with default parameters bool(true) 0 test insert 0 \N @@ -133,7 +133,7 @@ bool(true) 1;NULL 2;NULL Testing pgsqlCopyToFile() with error -Exception: SQLSTATE[42P01]: Undefined table: 7 ERROR: relation "test_error" does not exist +Exception: SQLSTATE[42P01]: Undefined table: 7 %s: %s "test_error" %s Testing pgsqlCopyToFile() to unwritable file Exception: SQLSTATE[HY000]: General error: 7 Unable to open the file for writing |