com php-src: Templatize driver name in the expected string: ext/odbc/tests/bug73448.phpt

From: Date: Wed, 20 Dec 2017 17:46:56 +0000
Subject: com php-src: Templatize driver name in the expected string: ext/odbc/tests/bug73448.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-100644@lists.php.net to get a copy of this message
Commit: c2308d5d7cb281b2e2b36774bbc4863429fab0bc Author: Anatol Belski <ab@php.net> Wed, 20 Dec 2017 18:46:56 +0100 Parents: 14393b5fb3713fd322fc98d899b14297088a88e9 Branches: PHP-7.1 PHP-7.2 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=c2308d5d7cb281b2e2b36774bbc4863429fab0bc Log: Templatize driver name in the expected string Changed paths: M ext/odbc/tests/bug73448.phpt Diff: diff --git a/ext/odbc/tests/bug73448.phpt b/ext/odbc/tests/bug73448.phpt index 4becce7..5f0be91 100644 --- a/ext/odbc/tests/bug73448.phpt +++ b/ext/odbc/tests/bug73448.phpt @@ -25,7 +25,7 @@ foreach ($sqlCommandList as $exampleNumber => $sql) { $e = odbc_errormsg($conn); $n = odbc_error($conn); - var_dump($sql, $n, $e, strlen($e)); + var_dump($sql, $n, $e); echo "\n"; } @@ -38,15 +38,13 @@ foreach ($sqlCommandList as $exampleNumber => $sql) { odbc_close($conn); ?> ==DONE== ---EXPECT-- +--EXPECTF-- string(42) "/* non existent procedure xy */ execute xy" string(5) "37000" -string(84) "[Microsoft][ODBC SQL Server Driver][SQL Server]Could not find stored procedure 'xy'." -int(84) +string(%d) "[Microsoft][%s][SQL Server]Could not find stored procedure 'xy'." string(58) "/* another erroneous query */ SELECT * FROM zwiebelfleisch" string(5) "S0002" -string(84) "[Microsoft][ODBC SQL Server Driver][SQL Server]Invalid object name 'zwiebelfleisch'." -int(84) +string(%d) "[Microsoft][%s][SQL Server]Invalid object name 'zwiebelfleisch'." ==DONE==

« previous php.cvs (#100644) next »