1
0
mirror of https://github.com/php/php-src.git synced 2026-04-21 23:18:13 +02:00
Commit Graph

65 Commits

Author SHA1 Message Date
Peter Kokot 113213f027 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:29:24 +02:00
Peter Kokot 7af945e271 Trim trailing whitespace in *.phpt 2018-10-14 19:43:12 +02:00
Jelle van der Waa 5acb8381b2 Fixed bug #53070 (enchant_broker_get_path crashes if no path is set)
enchant_broker_get_dict_path segfaults when the dict path is not setup,
instead of segfaulting return false instead.
2017-10-15 13:57:44 +02:00
Christoph M. Becker 7373da78fe Merge branch 'pull-request/1471'
* pull-request/1471:
  add test for php_enchant_broker_free()
2015-08-19 22:27:39 +02:00
marcosptf bf340ec417 add test for php_enchant_broker_free() 2015-08-19 22:25:29 +02:00
Christoph M. Becker 8e9e1b7da3 Merge branch 'pull-request/1472'
* pull-request/1472:
  This is a new test for enchant_broker_free_dict(). This function never was covered by .phpt
2015-08-19 22:16:42 +02:00
marcosptf d085100a52 This is a new test for enchant_broker_free_dict().
This function never was covered by .phpt
2015-08-19 22:15:40 +02:00
marcosptf 9a4b0dbe40 testing enchant_broker_(g|s)et_dict_path 2015-08-19 21:57:42 +02:00
Christoph M. Becker d28abb2da2 no need to skip this test if no dictionaries are installed 2015-08-17 21:43:28 +02:00
marcosptf 3b004baaaa new test for enchant pwl file 2015-08-17 21:28:37 +02:00
marcosptf 20448abc65 Update broker_describe.phpt 2015-08-10 15:54:22 -03:00
marcosptf 6222e5f196 Update broker_describe.phpt 2015-08-10 14:50:32 -03:00
marcosptf 5dc3dadf71 Update dict_check.phpt 2015-08-10 14:14:13 -03:00
marcosptf 3c41ab9ce9 Update broker_free.phpt 2015-08-09 08:15:33 -03:00
marcosptf 32fb77952f Update broker_dict_exists.phpt 2015-08-09 08:14:56 -03:00
marcosptf d3cd2f8221 Update broker_describe.phpt 2015-08-09 08:14:19 -03:00
marcosptf b7c5afbe99 Update dict_suggest.phpt 2015-08-09 08:13:12 -03:00
marcosptf 10ad115518 Update dict_store_replacement.phpt 2015-08-09 08:11:32 -03:00
marcosptf 49510ef7aa Update dict_quick_check_01.phpt 2015-08-09 08:09:13 -03:00
marcosptf 63990ab18a Update dict_quick_check.phpt 2015-08-09 08:06:48 -03:00
marcosptf ec24053797 Update dict_is_in_session.phpt 2015-08-09 08:04:49 -03:00
marcosptf fe497170bd Update dict_get_error.phpt 2015-08-09 08:02:05 -03:00
marcosptf ef3e2d7beb Update dict_describe.phpt 2015-08-09 07:58:58 -03:00
marcosptf 4129b50d23 Update dict_check.phpt 2015-08-09 07:56:23 -03:00
marcosptf 1cb530058e Update dict_add_to_session.phpt 2015-08-09 07:54:44 -03:00
marcosptf a7b9e3172d Update dict_add_to_personal.phpt 2015-08-09 07:52:04 -03:00
marcosptf c2bc106608 Update broker_set_ordering.phpt 2015-08-09 07:48:51 -03:00
marcosptf 018c412b5c Update broker_request_dict_01.phpt 2015-08-09 07:45:06 -03:00
marcosptf 4848b6af6b Update broker_request_dict_01.phpt 2015-08-09 07:44:04 -03:00
marcosptf b8fdc02536 Update broker_request_dict.phpt 2015-08-09 07:43:02 -03:00
marcosptf 9d3818c4cb Update broker_list_dicts.phpt 2015-08-09 07:37:50 -03:00
marcosptf 58c77c3610 Update broker_init.phpt 2015-08-09 07:35:59 -03:00
marcosptf 4191709915 Update broker_get_error.phpt 2015-08-09 07:31:56 -03:00
marcosptf c9857071d4 Update broker_free_01.phpt 2015-08-09 07:29:50 -03:00
marcosptf 8fa0ef538e Update broker_free.phpt 2015-08-09 07:28:17 -03:00
marcosptf 158aca848a new test refactor 2015-08-09 07:23:07 -03:00
marcosptf 55f9427688 test refactor
refactor of this test did ten years ago, make it more resilient.
2015-08-09 07:17:30 -03:00
marcosptf d2632efe5e Update broker_list_dicts.phpt 2015-08-07 15:16:31 -03:00
marcosptf e36431fbee Update dict_suggest.phpt 2015-08-07 15:14:22 -03:00
marcosptf a49260f197 Update dict_suggest.phpt 2015-08-07 14:10:32 -03:00
marcosptf 01988890a0 Update broker_list_dicts.phpt 2015-08-07 14:08:26 -03:00
marcosptf 696ce3f1e7 Update dict_describe.phpt 2015-08-07 14:04:53 -03:00
marcosptf b9d40accc4 Update dict_describe.phpt 2015-08-07 13:16:07 -03:00
marcosptf 3760fe3514 Update broker_list_dicts.phpt 2015-08-07 13:12:46 -03:00
marcosptf 348cb72ad7 Create dict_suggest.phpt 2015-08-07 11:44:30 -03:00
marcosptf aed64ccab6 Rename dict_quick_check.phpt to dict_quick_check_01.phpt 2015-08-07 11:42:29 -03:00
marcosptf 6f6b629e8f Create dict_store_replacement.phpt 2015-08-07 11:38:11 -03:00
marcosptf d26b5cab41 Create dict_suggest.phpt 2015-08-07 11:37:40 -03:00
marcosptf e6bc14b6df Create dict_is_in_session.phpt 2015-08-07 11:37:04 -03:00
marcosptf b3a96b3aaa Create dict_get_error.phpt 2015-08-07 11:36:29 -03:00