From: Xinchen Hui Date: Tue, 31 May 2016 08:54:38 +0000 (+0800) Subject: Fixed test (keyword is local related) X-Git-Tag: php-7.0.8RC1~20 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=47fa763faed867689f9a4f29cbb3c3b8568dcde0;p=php Fixed test (keyword is local related) --- 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