php-src/ext/pdo_mysql/tests
Nikita Popov 3ae995f03c Tweak uncaught exception message display
This implements a reduced variant of #1226 with just the following
change:

-Fatal error: Uncaught exception 'EngineException' with message 'Call to private method foo::bar() from context ''' in %s:%d
+Fatal error: Uncaught EngineException: Call to private method foo::bar() from context '' in %s:%d

The '' wrapper around messages is very weird if the exception
message itself contains ''. Futhermore having the message wrapped
in '' doesn't work for the "and defined" suffix of
TypeExceptions.
2015-05-17 18:47:06 +02:00
..
bug41125.phpt Adding CLEAN sections and making tests portable between PHP 5 and PHP 6 by replacing string(n) with %unicode|string%(n) and similar. 2009-11-04 12:33:49 +00:00
bug44327.phpt Adding CLEAN sections and making tests portable between PHP 5 and PHP 6 by replacing string(n) with %unicode|string%(n) and similar. 2009-11-04 12:33:49 +00:00
bug46292.phpt Adding CLEAN sections and making tests portable between PHP 5 and PHP 6 by replacing string(n) with %unicode|string%(n) and similar. 2009-11-04 12:33:49 +00:00
bug53551.phpt - Fix #53551 (PDOStatement execute segfaults for pdo_mysql driver) 2011-01-14 14:57:57 +00:00
bug53782.phpt - Fix Bug #53782 (foreach throws irrelevant exception) 2011-05-16 15:37:39 +00:00
bug54929.phpt Fixed MarinaDB support 2014-06-20 13:56:32 +04:00
bug63176.phpt Fixed bug #47407 2014-05-27 11:48:25 +08:00
bug66141.phpt Fixed MarinaDB support 2014-06-20 13:56:32 +04:00
bug68371.phpt Fixed bug #68371 PDO#getAttribute() cannot be called with platform-specific attribute names 2014-11-10 08:16:35 +01:00
bug_33689.phpt Adding CLEAN sections and making tests portable between PHP 5 and PHP 6 by replacing string(n) with %unicode|string%(n) and similar. 2009-11-04 12:33:49 +00:00
bug_37445.phpt Tweak uncaught exception message display 2015-05-17 18:47:06 +02:00
bug_39483.phpt - Add mysqlnd support for PDO_mysql, fixes at least bug#41997,#42499, 2008-07-21 13:05:51 +00:00
bug_39858.phpt fix mysql tests & mark nextRowset problematic tests 2013-08-24 23:56:48 -07:00
bug_41125.phpt Adding CLEAN sections and making tests portable between PHP 5 and PHP 6 by replacing string(n) with %unicode|string%(n) and similar. 2009-11-04 12:33:49 +00:00
bug_41698.phpt Adding CLEAN sections and making tests portable between PHP 5 and PHP 6 by replacing string(n) with %unicode|string%(n) and similar. 2009-11-04 12:33:49 +00:00
bug_41997.phpt fix mysql tests & mark nextRowset problematic tests 2013-08-24 23:56:48 -07:00
bug_42499.phpt Test update for sql_mode = ANSI 2010-09-22 15:16:07 +00:00
bug_43371.phpt - Fixed test 2008-10-19 18:24:37 +00:00
bug_44454.phpt This doesn't fail in 5.5 anymore 2013-08-03 12:14:47 -04:00
bug_44707.phpt Adding CLEAN sections and making tests portable between PHP 5 and PHP 6 by replacing string(n) with %unicode|string%(n) and similar. 2009-11-04 12:33:49 +00:00
bug_45120.phpt Fixed bug #45120 (PDOStatement->execute() returns true then false for same statement). 2009-12-03 15:24:43 +00:00
bug_50323.phpt Fixed bug #50323 (Allow use of ; in values via ;; in PDO DSN even in the middle of a string). 2009-12-06 21:32:58 +00:00
bug_51670.phpt Fixed bug #51670 getColumnMeta causes segfault when re-executing query after calling nextRowset 2010-04-27 05:56:56 +00:00
bug_61207.phpt This won't make the test pass but now its at least one that shows no unnecessary error messages... 2012-10-26 12:32:10 +02:00
bug_61411.phpt Fix for bug#61411 2012-05-02 15:55:22 +02:00
bug_61755.phpt Fix bug #61755 parsing bug can lead to access violations 2012-04-19 12:46:02 +02:00
bug_pecl_7976.phpt Adding CLEAN sections and making tests portable between PHP 5 and PHP 6 by replacing string(n) with %unicode|string%(n) and similar. 2009-11-04 12:33:49 +00:00
bug_pecl_12925.phpt Test update for sql_mode = ANSI 2010-09-22 15:16:07 +00:00
common.phpt Reverted wrong commit 2014-05-13 21:29:57 +04:00
config.inc restore unexpected commit 2014-05-13 12:25:03 +08:00
last_insert_id.phpt - Add mysqlnd support for PDO_mysql, fixes at least bug#41997,#42499, 2008-07-21 13:05:51 +00:00
mysql_pdo_test.inc Fixed mysql tests parsing phpinfo() 2013-07-02 08:23:33 +02:00
pdo_mysql___construct_ini.phpt Adding CLEAN sections and making tests portable between PHP 5 and PHP 6 by replacing string(n) with %unicode|string%(n) and similar. 2009-11-04 12:33:49 +00:00
pdo_mysql___construct_options_libmysql.phpt Apply test fix for bug #61288 pdo_mysql___construct_options_libmysql.phpt test fails 2012-03-06 01:43:49 +00:00
pdo_mysql___construct_options.phpt Always throw TypeException on throwing zpp failures 2015-04-06 11:27:34 +02:00
pdo_mysql___construct_uri.phpt Try fixing PDO MySQL pconnect test 2015-04-04 16:00:17 +02:00
pdo_mysql___construct.phpt Always throw TypeException on throwing zpp failures 2015-04-06 11:27:34 +02:00
pdo_mysql_attr_autocommit.phpt Test update for sql_mode = ANSI 2010-09-22 15:16:07 +00:00
pdo_mysql_attr_case.phpt Test update for sql_mode = ANSI 2010-09-22 15:16:07 +00:00
pdo_mysql_attr_client_version.phpt Adding CLEAN sections and making tests portable between PHP 5 and PHP 6 by replacing string(n) with %unicode|string%(n) and similar. 2009-11-04 12:33:49 +00:00
pdo_mysql_attr_connection_status.phpt Adding CLEAN sections and making tests portable between PHP 5 and PHP 6 by replacing string(n) with %unicode|string%(n) and similar. 2009-11-04 12:33:49 +00:00
pdo_mysql_attr_driver_name.phpt Adding CLEAN sections and making tests portable between PHP 5 and PHP 6 by replacing string(n) with %unicode|string%(n) and similar. 2009-11-04 12:33:49 +00:00
pdo_mysql_attr_errmode.phpt Fixed MarinaDB support 2014-06-20 13:56:32 +04:00
pdo_mysql_attr_fetch_table_names.phpt Adding CLEAN sections and making tests portable between PHP 5 and PHP 6 by replacing string(n) with %unicode|string%(n) and similar. 2009-11-04 12:33:49 +00:00
pdo_mysql_attr_init_command.phpt Adding CLEAN sections and making tests portable between PHP 5 and PHP 6 by replacing string(n) with %unicode|string%(n) and similar. 2009-11-04 12:33:49 +00:00
pdo_mysql_attr_max_buffer_size.phpt Adding CLEAN sections and making tests portable between PHP 5 and PHP 6 by replacing string(n) with %unicode|string%(n) and similar. 2009-11-04 12:33:49 +00:00
pdo_mysql_attr_multi_statements.phpt Start adding new attribute to control multi statements 2014-12-05 17:03:31 +01:00
pdo_mysql_attr_oracle_nulls.phpt Test update for sql_mode = ANSI 2010-09-22 15:16:07 +00:00
pdo_mysql_attr_prefetch.phpt MFH: Add mysqlnd support for PDO_mysql, fixes at least bug#41997,#42499, 2008-07-21 13:09:28 +00:00
pdo_mysql_attr_server_info.phpt Minor changes for MySQL 5.6 2012-09-29 12:10:24 +02:00
pdo_mysql_attr_server_version.phpt Adding CLEAN sections and making tests portable between PHP 5 and PHP 6 by replacing string(n) with %unicode|string%(n) and similar. 2009-11-04 12:33:49 +00:00
pdo_mysql_attr_statement_class.phpt Tweak uncaught exception message display 2015-05-17 18:47:06 +02:00
pdo_mysql_begintransaction.phpt Test update for sql_mode = ANSI 2010-09-22 15:16:07 +00:00
pdo_mysql_bit.phpt Adding CLEAN sections and making tests portable between PHP 5 and PHP 6 by replacing string(n) with %unicode|string%(n) and similar. 2009-11-04 12:33:49 +00:00
pdo_mysql_class_constants.phpt Start adding new attribute to control multi statements 2014-12-05 17:03:31 +01:00
pdo_mysql_commit.phpt Test update for sql_mode = ANSI 2010-09-22 15:16:07 +00:00
pdo_mysql_connect_charset.phpt Revert previous commit by mistake 2014-09-04 11:59:58 +08:00
pdo_mysql_errorcode.phpt Adding CLEAN sections and making tests portable between PHP 5 and PHP 6 by replacing string(n) with %unicode|string%(n) and similar. 2009-11-04 12:33:49 +00:00
pdo_mysql_errorinfo.phpt Adding CLEAN sections and making tests portable between PHP 5 and PHP 6 by replacing string(n) with %unicode|string%(n) and similar. 2009-11-04 12:33:49 +00:00
pdo_mysql_exec_ddl.phpt Adding CLEAN sections and making tests portable between PHP 5 and PHP 6 by replacing string(n) with %unicode|string%(n) and similar. 2009-11-04 12:33:49 +00:00
pdo_mysql_exec_load_data.phpt This test needs local infile enabled 2013-08-02 15:33:18 -04:00
pdo_mysql_exec_select.phpt Test update for sql_mode = ANSI 2010-09-22 15:16:07 +00:00
pdo_mysql_exec.phpt Fixed MarinaDB support 2014-06-20 13:56:32 +04:00
pdo_mysql_fetch_both.phpt Adding CLEAN sections and making tests portable between PHP 5 and PHP 6 by replacing string(n) with %unicode|string%(n) and similar. 2009-11-04 12:33:49 +00:00
pdo_mysql_get_attribute.phpt Fixed test. The warning actually indicate a problem in master that we didn't repeat in phpng. 2014-05-19 22:20:02 +04:00
pdo_mysql_interface.phpt Fix skipifs 2011-09-08 17:52:45 +00:00
pdo_mysql_last_insert_id.phpt Test update for sql_mode = ANSI 2010-09-22 15:16:07 +00:00
pdo_mysql_multi_stmt_nextrowset.phpt Start adding new attribute to control multi statements 2014-12-05 17:03:31 +01:00
pdo_mysql_pconnect.phpt sigh, can't even copypaste without screwing up 2015-04-02 00:07:00 +02:00
pdo_mysql_phpinfo.phpt pcre_quote? No such thing. How did this ever pass? 2013-08-02 16:12:21 -04:00
pdo_mysql_prepare_emulated_anonymous.phpt Test update for sql_mode = ANSI 2010-09-22 15:16:07 +00:00
pdo_mysql_prepare_emulated_placeholder_everywhere.phpt Test update for sql_mode = ANSI 2010-09-22 15:16:07 +00:00
pdo_mysql_prepare_emulated.phpt Test update for sql_mode = ANSI 2010-09-22 15:16:07 +00:00
pdo_mysql_prepare_load_data.phpt Test update for sql_mode = ANSI 2010-09-22 15:16:07 +00:00
pdo_mysql_prepare_match_against.phpt Adding CLEAN sections and making tests portable between PHP 5 and PHP 6 by replacing string(n) with %unicode|string%(n) and similar. 2009-11-04 12:33:49 +00:00
pdo_mysql_prepare_native_clear_error.phpt Tweak uncaught exception message display 2015-05-17 18:47:06 +02:00
pdo_mysql_prepare_native_column.phpt Adding CLEAN sections and making tests portable between PHP 5 and PHP 6 by replacing string(n) with %unicode|string%(n) and similar. 2009-11-04 12:33:49 +00:00
pdo_mysql_prepare_native_dup_named_placeholder.phpt Test update for sql_mode = ANSI 2010-09-22 15:16:07 +00:00
pdo_mysql_prepare_native_mixed_style.phpt Tweak uncaught exception message display 2015-05-17 18:47:06 +02:00
pdo_mysql_prepare_native_named_placeholder.phpt Test update for sql_mode = ANSI 2010-09-22 15:16:07 +00:00
pdo_mysql_prepare_native_placeholder_everywhere.phpt Test update for sql_mode = ANSI 2010-09-22 15:16:07 +00:00
pdo_mysql_prepare_native.phpt Test update for sql_mode = ANSI 2010-09-22 15:16:07 +00:00
pdo_mysql_rollback.phpt Test update for sql_mode = ANSI 2010-09-22 15:16:07 +00:00
pdo_mysql_stmt_bindcolumn.phpt Adding CLEAN sections and making tests portable between PHP 5 and PHP 6 by replacing string(n) with %unicode|string%(n) and similar. 2009-11-04 12:33:49 +00:00
pdo_mysql_stmt_bindparam_types.phpt Adding CLEAN sections and making tests portable between PHP 5 and PHP 6 by replacing string(n) with %unicode|string%(n) and similar. 2009-11-04 12:33:49 +00:00
pdo_mysql_stmt_bindparam.phpt Adding CLEAN sections and making tests portable between PHP 5 and PHP 6 by replacing string(n) with %unicode|string%(n) and similar. 2009-11-04 12:33:49 +00:00
pdo_mysql_stmt_bindvalue.phpt Adding CLEAN sections and making tests portable between PHP 5 and PHP 6 by replacing string(n) with %unicode|string%(n) and similar. 2009-11-04 12:33:49 +00:00
pdo_mysql_stmt_blobfromsteam.phpt Adding CLEAN sections and making tests portable between PHP 5 and PHP 6 by replacing string(n) with %unicode|string%(n) and similar. 2009-11-04 12:33:49 +00:00
pdo_mysql_stmt_blobs.phpt typo fixes - https://github.com/vlajos/misspell_fixer 2014-11-23 14:52:47 -08:00
pdo_mysql_stmt_closecursor_empty.phpt Adding CLEAN sections and making tests portable between PHP 5 and PHP 6 by replacing string(n) with %unicode|string%(n) and similar. 2009-11-04 12:33:49 +00:00
pdo_mysql_stmt_closecursor.phpt Adding CLEAN sections and making tests portable between PHP 5 and PHP 6 by replacing string(n) with %unicode|string%(n) and similar. 2009-11-04 12:33:49 +00:00
pdo_mysql_stmt_columncount.phpt Test update for sql_mode = ANSI 2010-09-22 15:16:07 +00:00
pdo_mysql_stmt_errorcode.phpt Tweak uncaught exception message display 2015-05-17 18:47:06 +02:00
pdo_mysql_stmt_errorinfo.phpt Adding CLEAN sections and making tests portable between PHP 5 and PHP 6 by replacing string(n) with %unicode|string%(n) and similar. 2009-11-04 12:33:49 +00:00
pdo_mysql_stmt_fetch_non_select.phpt Test update for sql_mode = ANSI 2010-09-22 15:16:07 +00:00
pdo_mysql_stmt_fetch_serialize_simple.phpt Test update for sql_mode = ANSI 2010-09-22 15:16:07 +00:00
pdo_mysql_stmt_fetch_serialize.phpt Fixing test - see also gcov results 2010-05-31 13:28:15 +00:00
pdo_mysql_stmt_fetchobject.phpt Test update for sql_mode = ANSI 2010-09-22 15:16:07 +00:00
pdo_mysql_stmt_getcolumnmeta.phpt Use "float" and "integer" in typehint and zpp errors 2014-12-21 13:23:02 +00:00
pdo_mysql_stmt_multiquery.phpt Tweak uncaught exception message display 2015-05-17 18:47:06 +02:00
pdo_mysql_stmt_nextrowset.phpt fix mysql tests & mark nextRowset problematic tests 2013-08-24 23:56:48 -07:00
pdo_mysql_stmt_rowcount.phpt Adding CLEAN sections and making tests portable between PHP 5 and PHP 6 by replacing string(n) with %unicode|string%(n) and similar. 2009-11-04 12:33:49 +00:00
pdo_mysql_stmt_unbuffered_2050.phpt Adding CLEAN sections and making tests portable between PHP 5 and PHP 6 by replacing string(n) with %unicode|string%(n) and similar. 2009-11-04 12:33:49 +00:00
pdo_mysql_stmt_variable_columncount.phpt fix mysql tests & mark nextRowset problematic tests 2013-08-24 23:56:48 -07:00
pdo_mysql_subclass.phpt Fix test: third parameter can be false. 2010-10-05 14:41:08 +00:00
pdo_mysql_types_zerofill.phpt Test update for sql_mode = ANSI 2010-09-22 15:16:07 +00:00
pdo_mysql_types.phpt Test update for sql_mode = ANSI 2010-09-22 15:16:07 +00:00
pecl_bug_5200.phpt Adding CLEAN sections and making tests portable between PHP 5 and PHP 6 by replacing string(n) with %unicode|string%(n) and similar. 2009-11-04 12:33:49 +00:00
pecl_bug_5780.phpt Adding CLEAN sections and making tests portable between PHP 5 and PHP 6 by replacing string(n) with %unicode|string%(n) and similar. 2009-11-04 12:33:49 +00:00
pecl_bug_5802.phpt Adding CLEAN sections and making tests portable between PHP 5 and PHP 6 by replacing string(n) with %unicode|string%(n) and similar. 2009-11-04 12:33:49 +00:00
README MFH: Add mysqlnd support for PDO_mysql, fixes at least bug#41997,#42499, 2008-07-21 13:09:28 +00:00
show_tables.phpt - Add mysqlnd support for PDO_mysql, fixes at least bug#41997,#42499, 2008-07-21 13:05:51 +00:00
skipif.inc Remove executable permission on inc 2012-10-10 10:44:34 +08:00
table.inc MFH: Add mysqlnd support for PDO_mysql, fixes at least bug#41997,#42499, 2008-07-21 13:09:28 +00:00

You must set the following environment variables to run the tests:

  PDO_MYSQL_TEST_DSN  - DSN
    For example: mysql:dbname=test;host=localhost;port=3306

  PDO_MYSQL_TEST_HOST     - database host
  PDO_MYSQL_TEST_DB      - database (schema) name
  PDO_MYSQL_TEST_SOCKET  - database server socket
  PDO_MYSQL_TEST_ENGINE  - storage engine to use
  PDO_MYSQL_TEST_USER    - database user
  PDO_MYSQL_TEST_PASS    - database user password
  PDO_MYSQL_TEST_CHARSET - database charset

  NOTE: if any of PDO_MYSQL_TEST_[HOST|DB|SOCKET|ENGINE|CHARSET] is
  part of PDO_MYSQL_TEST_DSN, the values must match. That is, for example,
  for PDO_MYSQL_TEST_DSN = mysql:dbname=test you MUST set PDO_MYSQL_TEST_DB=test.