Grokbase Groups PHP php-cvs May 2016
FAQ
Commit: 47fa763faed867689f9a4f29cbb3c3b8568dcde0
Author: Xinchen Hui <laruence@gmail.com> Tue, 31 May 2016 16:54:38 +0800
Parents: 072bc589fc79a662a00480937d496deb1497b12e
Branches: PHP-7.0 master

Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=47fa763faed867689f9a4f29cbb3c3b8568dcde0

Log:
Fixed test (keyword is local related)

Changed paths:
   M ext/pdo_pgsql/tests/copy_from.phpt
   M ext/pdo_pgsql/tests/copy_to.phpt


Diff:
diff --git a/ext/pdo_pgsql/tests/copy_from.phpt b/ext/pdo_pgsql/tests/copy_from.phpt
index de1140d..31d7752 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 7bc46c6..93aab16 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

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupphp-cvs @
categoriesphp
postedMay 31, '16 at 8:56a
activeMay 31, '16 at 8:56a
posts1
users1
websitephp.net

1 user in discussion

Xinchen Hui: 1 post

People

Translate

site design / logo © 2019 Grokbase