php-src/ext/pdo_mysql/tests
Peter Kokot b746e69887 Sync leading and final newlines in *.phpt sections
This patch adds missing newlines, trims multiple redundant final
newlines into a single one, and trims redundant leading newlines in all
*.phpt sections.

According to POSIX, a line is a sequence of zero or more non-' <newline>'
characters plus a terminating '<newline>' character. [1] Files should
normally have at least one final newline character.

C89 [2] and later standards [3] mention a final newline:
"A source file that is not empty shall end in a new-line character,
which shall not be immediately preceded by a backslash character."

Although it is not mandatory for all files to have a final newline
fixed, a more consistent and homogeneous approach brings less of commit
differences issues and a better development experience in certain text
editors and IDEs.

[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206
[2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2
[3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
2018-10-15 04:32:30 +02: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:32:30 +02:00
bug68371.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +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
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:32:30 +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:32:30 +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:32:30 +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:32:30 +02:00
common.phpt
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:32:30 +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:32:30 +02:00
pdo_mysql_attr_case.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +02:00
pdo_mysql_attr_client_version.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +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:32:30 +02:00
pdo_mysql_attr_errmode.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +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:32:30 +02:00
pdo_mysql_attr_multi_statements.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +02:00
pdo_mysql_attr_oracle_nulls.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +02:00
pdo_mysql_attr_prefetch.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +02:00
pdo_mysql_attr_server_info.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +02:00
pdo_mysql_attr_server_version.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +02:00
pdo_mysql_attr_statement_class.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +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:32:30 +02:00
pdo_mysql_class_constants.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:45:12 +02:00
pdo_mysql_commit.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +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:32:30 +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:32:30 +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:32:30 +02:00
pdo_mysql_fetch_both.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +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
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:32:30 +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:32:30 +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:32:30 +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:32:30 +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:32:30 +02:00
pdo_mysql_stmt_blobs.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +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:32:30 +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:32:30 +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 Merge branch 'PHP-7.2' into PHP-7.3 2018-09-19 12:31:55 +02:00
pdo_mysql_stmt_multiquery.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +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:32:30 +02:00
pdo_mysql_stmt_unbuffered_2050.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +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:32:30 +02:00
pecl_bug_5200.phpt
pecl_bug_5780.phpt Use EXPECT instead of EXPECTF when possible 2018-02-20 21:53:48 +01:00
pecl_bug_5802.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:32:30 +02: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:55:24 +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.