php-src/ext/pdo_mysql/tests
Peter Kokot 92ac598aab Remove local variables
This patch removes the so called local variables defined per
file basis for certain editors to properly show tab width, and
similar settings. These are mainly used by Vim and Emacs editors
yet with recent changes the once working definitions don't work
anymore in Vim without custom plugins or additional configuration.
Neither are these settings synced across the PHP code base.

A simpler and better approach is EditorConfig and fixing code
using some code style fixing tools in the future instead.

This patch also removes the so called modelines for Vim. Modelines
allow Vim editor specifically to set some editor configuration such as
syntax highlighting, indentation style and tab width to be set in the
first line or the last 5 lines per file basis. Since the php test
files have syntax highlighting already set in most editors properly and
EditorConfig takes care of the indentation settings, this patch removes
these as well for the Vim 6.0 and newer versions.

With the removal of local variables for certain editors such as
Emacs and Vim, the footer is also probably not needed anymore when
creating extensions using ext_skel.php script.

Additionally, Vim modelines for setting php syntax and some editor
settings has been removed from some *.phpt files.  All these are
mostly not relevant for phpt files neither work properly in the
middle of the file.
2019-02-03 21:03:00 +01:00
..
bug41125.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:45:12 +02:00
bug44327.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:45:12 +02:00
bug46292.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:45:12 +02:00
bug53551.phpt
bug53782.phpt
bug54929.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:45:12 +02:00
bug63176.phpt
bug66141.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:33:09 +02:00
bug68371.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:33:09 +02:00
bug70272.phpt Fixed bug #70272 (Segfault in pdo_mysql) 2015-08-18 18:33:07 +08:00
bug70389.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
bug70862.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
bug71569.phpt Fix test description 2016-02-13 17:46:24 +01:00
bug75177.phpt Fixed bug #75018, fixed bug #75177 2017-09-13 14:10:30 +02:00
bug77289.phpt Fixed bug #77289 2019-01-09 09:50:26 +01:00
bug_33689.phpt Remove more PHP 6 leftovers from tests 2016-11-24 22:39:39 +01:00
bug_37445.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:45:12 +02:00
bug_39483.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:33:09 +02:00
bug_39858.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
bug_41125.phpt
bug_41698.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:33:09 +02:00
bug_41997.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
bug_42499.phpt Remove more PHP 6 leftovers from tests 2016-11-24 22:39:39 +01:00
bug_43371.phpt
bug_44454.phpt
bug_44707.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
bug_45120.phpt
bug_50323.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
bug_51670.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:33:09 +02:00
bug_61207.phpt
bug_61411.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
bug_61755.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
bug_74376.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
bug_pecl_7976.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
bug_pecl_12925.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:33:09 +02:00
common.phpt Remove local variables 2019-02-03 21:03:00 +01:00
config.inc
last_insert_id.phpt
mysql_pdo_test.inc Remove trailing whitespace in inc files 2018-02-10 19:20:23 +01:00
PDO_getAvaliableDrivers.phpt Add and fix SKIPIF sections 2018-02-04 17:26:37 +01:00
pdo_mysql___construct.phpt Updated tests to reflect exception class changes. 2015-05-16 16:49:14 -05:00
pdo_mysql___construct_ini.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:33:09 +02:00
pdo_mysql___construct_options.phpt Updated tests to reflect exception class changes. 2015-05-16 16:49:14 -05:00
pdo_mysql___construct_options_libmysql.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
pdo_mysql___construct_uri-win32.phpt fork test 2015-08-20 13:32:29 +02:00
pdo_mysql___construct_uri.phpt fork test 2015-08-20 13:32:29 +02:00
pdo_mysql_attr_autocommit.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:33:09 +02:00
pdo_mysql_attr_case.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:33:09 +02:00
pdo_mysql_attr_client_version.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:33:09 +02:00
pdo_mysql_attr_connection_status.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
pdo_mysql_attr_driver_name.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:33:09 +02:00
pdo_mysql_attr_errmode.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:33:09 +02:00
pdo_mysql_attr_fetch_table_names.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
pdo_mysql_attr_init_command.phpt Remove more PHP 6 leftovers from tests 2016-11-24 22:39:39 +01:00
pdo_mysql_attr_max_buffer_size.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:33:09 +02:00
pdo_mysql_attr_multi_statements.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:33:09 +02:00
pdo_mysql_attr_oracle_nulls.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:33:09 +02:00
pdo_mysql_attr_prefetch.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:33:09 +02:00
pdo_mysql_attr_server_info.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:33:09 +02:00
pdo_mysql_attr_server_version.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:33:09 +02:00
pdo_mysql_attr_statement_class.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:33:09 +02:00
pdo_mysql_begintransaction.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
pdo_mysql_bit.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:33:09 +02:00
pdo_mysql_class_constants.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:46:15 +02:00
pdo_mysql_commit.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:33:09 +02:00
pdo_mysql_connect_charset.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
pdo_mysql_errorcode.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:33:09 +02:00
pdo_mysql_errorinfo.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
pdo_mysql_exec.phpt
pdo_mysql_exec_ddl.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:33:09 +02:00
pdo_mysql_exec_load_data.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
pdo_mysql_exec_select.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:33:09 +02:00
pdo_mysql_fetch_both.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:33:09 +02:00
pdo_mysql_get_attribute.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
pdo_mysql_interface.phpt Switch PDO to use serialize_deny 2018-11-26 13:28:14 +01:00
pdo_mysql_last_insert_id.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
pdo_mysql_multi_stmt_nextrowset.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
pdo_mysql_param_str_natl.phpt Add PDO parameter types for national character set strings 2017-03-20 18:25:50 -04:00
pdo_mysql_pconnect.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
pdo_mysql_phpinfo.phpt
pdo_mysql_prepare_emulated.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
pdo_mysql_prepare_emulated_anonymous.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
pdo_mysql_prepare_emulated_placeholder_everywhere.phpt
pdo_mysql_prepare_load_data.phpt Merge branch 'PHP-7.1' 2016-12-15 09:32:26 +01:00
pdo_mysql_prepare_match_against.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
pdo_mysql_prepare_native.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
pdo_mysql_prepare_native_clear_error.phpt Use bool instead of boolean while throwing a type error 2018-02-04 23:09:40 +01:00
pdo_mysql_prepare_native_column.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:33:09 +02:00
pdo_mysql_prepare_native_dup_named_placeholder.phpt
pdo_mysql_prepare_native_mixed_style.phpt Use bool instead of boolean while throwing a type error 2018-02-04 23:09:40 +01:00
pdo_mysql_prepare_native_named_placeholder.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
pdo_mysql_prepare_native_placeholder_everywhere.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:33:09 +02:00
pdo_mysql_quote.phpt Add PDO parameter types for national character set strings 2017-03-20 18:25:50 -04:00
pdo_mysql_rollback.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:33:09 +02:00
pdo_mysql_stmt_bindcolumn.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
pdo_mysql_stmt_bindparam.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
pdo_mysql_stmt_bindparam_types.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:33:09 +02:00
pdo_mysql_stmt_bindvalue.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
pdo_mysql_stmt_blobfromsteam.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:33:09 +02:00
pdo_mysql_stmt_blobs.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:33:09 +02:00
pdo_mysql_stmt_closecursor.phpt
pdo_mysql_stmt_closecursor_empty.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
pdo_mysql_stmt_columncount.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:33:09 +02:00
pdo_mysql_stmt_errorcode.phpt Use bool instead of boolean while throwing a type error 2018-02-04 23:09:40 +01:00
pdo_mysql_stmt_errorinfo.phpt Remove more PHP 6 leftovers from tests 2016-11-24 22:39:39 +01:00
pdo_mysql_stmt_fetch_non_select.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:33:09 +02:00
pdo_mysql_stmt_fetch_serialize.phpt Remove more PHP 6 leftovers from tests 2016-11-24 22:39:39 +01:00
pdo_mysql_stmt_fetch_serialize_simple.phpt Cleanup tests version checks 2016-11-20 14:16:50 +01:00
pdo_mysql_stmt_fetchobject.phpt Remove more PHP 6 leftovers from tests 2016-11-24 22:39:39 +01:00
pdo_mysql_stmt_getcolumnmeta.phpt Remove local variables 2019-02-03 21:03:00 +01:00
pdo_mysql_stmt_multiquery.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:33:09 +02:00
pdo_mysql_stmt_nextrowset.phpt Remove more PHP 6 leftovers from tests 2016-11-24 22:39:39 +01:00
pdo_mysql_stmt_rowcount.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:33:09 +02:00
pdo_mysql_stmt_unbuffered_2050.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:33:09 +02:00
pdo_mysql_stmt_variable_columncount.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
pdo_mysql_subclass.phpt Remove more PHP 6 leftovers from tests 2016-11-24 22:39:39 +01:00
pdo_mysql_types.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
pdo_mysql_types_zerofill.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:33:09 +02:00
pecl_bug_5200.phpt
pecl_bug_5780.phpt Remove local variables 2019-02-03 21:03:00 +01:00
pecl_bug_5802.phpt Remove local variables 2019-02-03 21:03:00 +01:00
README
show_tables.phpt
skipif.inc Cleanup tests version checks 2016-11-20 14:16:50 +01:00
table.inc Sync leading and final newlines in source code files 2018-10-14 12:56:38 +02: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.