diff options
author | Peter Kokot <peterkokot@gmail.com> | 2018-10-15 04:32:30 +0200 |
---|---|---|
committer | Peter Kokot <peterkokot@gmail.com> | 2018-10-15 04:32:30 +0200 |
commit | b746e6988743b46ccb0542d5d568eef0608ee296 (patch) | |
tree | 2f5248149fec900b613e165f7dd050da0011743e /ext/ldap/tests | |
parent | 3599a2d82beff1ff3387a04c73fcdac9dd5336d4 (diff) | |
download | php-git-b746e6988743b46ccb0542d5d568eef0608ee296.tar.gz |
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
Diffstat (limited to 'ext/ldap/tests')
-rw-r--r-- | ext/ldap/tests/bug76248.phpt | 2 | ||||
-rw-r--r-- | ext/ldap/tests/ldap_escape_all.phpt | 2 | ||||
-rw-r--r-- | ext/ldap/tests/ldap_escape_both.phpt | 2 | ||||
-rw-r--r-- | ext/ldap/tests/ldap_escape_dn.phpt | 2 | ||||
-rw-r--r-- | ext/ldap/tests/ldap_escape_filter.phpt | 2 | ||||
-rw-r--r-- | ext/ldap/tests/ldap_escape_ignore.phpt | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/ext/ldap/tests/bug76248.phpt b/ext/ldap/tests/bug76248.phpt index 21bb4fa31d..3a0b2a456b 100644 --- a/ext/ldap/tests/bug76248.phpt +++ b/ext/ldap/tests/bug76248.phpt @@ -37,4 +37,4 @@ array(2) { ["dn"]=> NULL } -}
\ No newline at end of file +} diff --git a/ext/ldap/tests/ldap_escape_all.phpt b/ext/ldap/tests/ldap_escape_all.phpt index a79be004ff..d5f4950c60 100644 --- a/ext/ldap/tests/ldap_escape_all.phpt +++ b/ext/ldap/tests/ldap_escape_all.phpt @@ -11,4 +11,4 @@ var_dump(ldap_escape($subject)); ?> --EXPECT-- -string(39) "\66\6f\6f\3d\62\61\72\28\62\61\7a\29\2a"
\ No newline at end of file +string(39) "\66\6f\6f\3d\62\61\72\28\62\61\7a\29\2a" diff --git a/ext/ldap/tests/ldap_escape_both.phpt b/ext/ldap/tests/ldap_escape_both.phpt index 2169c0ad2e..424a4575af 100644 --- a/ext/ldap/tests/ldap_escape_both.phpt +++ b/ext/ldap/tests/ldap_escape_both.phpt @@ -11,4 +11,4 @@ var_dump(ldap_escape($subject, null, LDAP_ESCAPE_DN | LDAP_ESCAPE_FILTER)); ?> --EXPECT-- -string(21) "foo\3dbar\28baz\29\2a"
\ No newline at end of file +string(21) "foo\3dbar\28baz\29\2a" diff --git a/ext/ldap/tests/ldap_escape_dn.phpt b/ext/ldap/tests/ldap_escape_dn.phpt index fbcb0545ae..d80e02dee7 100644 --- a/ext/ldap/tests/ldap_escape_dn.phpt +++ b/ext/ldap/tests/ldap_escape_dn.phpt @@ -11,4 +11,4 @@ var_dump(ldap_escape($subject, null, LDAP_ESCAPE_DN)); ?> --EXPECT-- -string(15) "foo\3dbar(baz)*"
\ No newline at end of file +string(15) "foo\3dbar(baz)*" diff --git a/ext/ldap/tests/ldap_escape_filter.phpt b/ext/ldap/tests/ldap_escape_filter.phpt index e4540a452d..d156f56c87 100644 --- a/ext/ldap/tests/ldap_escape_filter.phpt +++ b/ext/ldap/tests/ldap_escape_filter.phpt @@ -11,4 +11,4 @@ var_dump(ldap_escape($subject, null, LDAP_ESCAPE_FILTER)); ?> --EXPECT-- -string(19) "foo=bar\28baz\29\2a"
\ No newline at end of file +string(19) "foo=bar\28baz\29\2a" diff --git a/ext/ldap/tests/ldap_escape_ignore.phpt b/ext/ldap/tests/ldap_escape_ignore.phpt index ab56aa2d0e..73260690d0 100644 --- a/ext/ldap/tests/ldap_escape_ignore.phpt +++ b/ext/ldap/tests/ldap_escape_ignore.phpt @@ -12,4 +12,4 @@ var_dump(ldap_escape($subject, $ignore)); ?> --EXPECT-- -string(31) "\66oo\3d\62a\72\28\62a\7a\29\2a"
\ No newline at end of file +string(31) "\66oo\3d\62a\72\28\62a\7a\29\2a" |