summaryrefslogtreecommitdiff
path: root/ext/posix
diff options
context:
space:
mode:
authorPeter Kokot <peterkokot@gmail.com>2018-10-15 04:33:09 +0200
committerPeter Kokot <peterkokot@gmail.com>2018-10-15 04:33:09 +0200
commitd679f02295ea079338f029b7f5f4cb65b37f190c (patch)
tree53c519e1f829913a54d9dcea004721a3714cea26 /ext/posix
parente84662c35cffaa95ead4322bfe9d61815c185722 (diff)
downloadphp-git-d679f02295ea079338f029b7f5f4cb65b37f190c.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/posix')
-rw-r--r--ext/posix/tests/posix_getgrgid_basic.phpt1
-rw-r--r--ext/posix/tests/posix_getgroups_basic.phpt2
-rw-r--r--ext/posix/tests/posix_getpgid_basic.phpt2
-rw-r--r--ext/posix/tests/posix_getpgrp_basic.phpt2
-rw-r--r--ext/posix/tests/posix_getpid_basic.phpt2
-rw-r--r--ext/posix/tests/posix_getppid_basic.phpt2
-rw-r--r--ext/posix/tests/posix_getpwuid_basic.phpt2
-rw-r--r--ext/posix/tests/posix_getrlimit_basic.phpt2
-rw-r--r--ext/posix/tests/posix_getsid_basic.phpt2
-rw-r--r--ext/posix/tests/posix_kill_basic.phpt1
-rw-r--r--ext/posix/tests/posix_mknod_basic.phpt2
-rw-r--r--ext/posix/tests/posix_setegid_basic.phpt2
-rw-r--r--ext/posix/tests/posix_setgid_basic.phpt2
-rw-r--r--ext/posix/tests/posix_setgid_variation2.phpt1
-rw-r--r--ext/posix/tests/posix_setgid_variation4.phpt1
-rw-r--r--ext/posix/tests/posix_setgid_variation5.phpt1
-rw-r--r--ext/posix/tests/posix_setgid_variation6.phpt2
-rw-r--r--ext/posix/tests/posix_setrlimit.phpt1
-rw-r--r--ext/posix/tests/posix_uname_basic.phpt2
19 files changed, 13 insertions, 19 deletions
diff --git a/ext/posix/tests/posix_getgrgid_basic.phpt b/ext/posix/tests/posix_getgrgid_basic.phpt
index be717da64a..61ec8ab0fc 100644
--- a/ext/posix/tests/posix_getgrgid_basic.phpt
+++ b/ext/posix/tests/posix_getgrgid_basic.phpt
@@ -27,4 +27,3 @@ Array
[gid] => %d
)
===DONE===
-
diff --git a/ext/posix/tests/posix_getgroups_basic.phpt b/ext/posix/tests/posix_getgroups_basic.phpt
index 2d309e61d4..dd17fd447f 100644
--- a/ext/posix/tests/posix_getgroups_basic.phpt
+++ b/ext/posix/tests/posix_getgroups_basic.phpt
@@ -21,4 +21,4 @@ Test posix_getgroups() function : basic functionality
--EXPECT--
Basic test of POSIX getgroups
TEST PASSED
-===DONE=== \ No newline at end of file
+===DONE===
diff --git a/ext/posix/tests/posix_getpgid_basic.phpt b/ext/posix/tests/posix_getpgid_basic.phpt
index 500bc18cff..57efab7c3f 100644
--- a/ext/posix/tests/posix_getpgid_basic.phpt
+++ b/ext/posix/tests/posix_getpgid_basic.phpt
@@ -20,4 +20,4 @@ Basic test of posix_getpgid function
int(%d)
===DONE====
- \ No newline at end of file
+
diff --git a/ext/posix/tests/posix_getpgrp_basic.phpt b/ext/posix/tests/posix_getpgrp_basic.phpt
index f460e347ce..ceb78bb700 100644
--- a/ext/posix/tests/posix_getpgrp_basic.phpt
+++ b/ext/posix/tests/posix_getpgrp_basic.phpt
@@ -18,4 +18,4 @@ Test posix_getpgrp() function : basic functionality
Basic test of POSIX getpgrp function
int(%d)
===DONE====
- \ No newline at end of file
+
diff --git a/ext/posix/tests/posix_getpid_basic.phpt b/ext/posix/tests/posix_getpid_basic.phpt
index 40689583b5..a52895946d 100644
--- a/ext/posix/tests/posix_getpid_basic.phpt
+++ b/ext/posix/tests/posix_getpid_basic.phpt
@@ -18,4 +18,4 @@ Test posix_getpid() function : basic functionality
Basic test of POSIX getpid function
int(%d)
===DONE====
- \ No newline at end of file
+
diff --git a/ext/posix/tests/posix_getppid_basic.phpt b/ext/posix/tests/posix_getppid_basic.phpt
index 8d10afc456..2fc4ff43ae 100644
--- a/ext/posix/tests/posix_getppid_basic.phpt
+++ b/ext/posix/tests/posix_getppid_basic.phpt
@@ -18,4 +18,4 @@ Test posix_getppid() function : basic functionality
Basic test of POSIX getppid function
int(%d)
===DONE====
- \ No newline at end of file
+
diff --git a/ext/posix/tests/posix_getpwuid_basic.phpt b/ext/posix/tests/posix_getpwuid_basic.phpt
index 16e0ae1152..a604ce36cf 100644
--- a/ext/posix/tests/posix_getpwuid_basic.phpt
+++ b/ext/posix/tests/posix_getpwuid_basic.phpt
@@ -27,4 +27,4 @@ Array
\[dir\] => [^\r\n]+
\[shell\] => [^\r\n]+
\)
-===DONE==== \ No newline at end of file
+===DONE====
diff --git a/ext/posix/tests/posix_getrlimit_basic.phpt b/ext/posix/tests/posix_getrlimit_basic.phpt
index bace9fd5ee..57870477f8 100644
--- a/ext/posix/tests/posix_getrlimit_basic.phpt
+++ b/ext/posix/tests/posix_getrlimit_basic.phpt
@@ -17,4 +17,4 @@ Basic test of POSIX posix_getrlimit function
array(%d) {
%a
}
-===DONE==== \ No newline at end of file
+===DONE====
diff --git a/ext/posix/tests/posix_getsid_basic.phpt b/ext/posix/tests/posix_getsid_basic.phpt
index 5bf362efd4..758ec6055d 100644
--- a/ext/posix/tests/posix_getsid_basic.phpt
+++ b/ext/posix/tests/posix_getsid_basic.phpt
@@ -19,4 +19,4 @@ Test posix_getsid() function : basic functionality
Basic test of posix_getsid function
int(%d)
===DONE====
- \ No newline at end of file
+
diff --git a/ext/posix/tests/posix_kill_basic.phpt b/ext/posix/tests/posix_kill_basic.phpt
index fe9cf44692..4ce50ca497 100644
--- a/ext/posix/tests/posix_kill_basic.phpt
+++ b/ext/posix/tests/posix_kill_basic.phpt
@@ -36,4 +36,3 @@ bool(false)
int(%d)
string(%d) %s%rNo such process|Operation not permitted%r%s
===DONE====
-
diff --git a/ext/posix/tests/posix_mknod_basic.phpt b/ext/posix/tests/posix_mknod_basic.phpt
index e95aa301fd..568d8d3dc6 100644
--- a/ext/posix/tests/posix_mknod_basic.phpt
+++ b/ext/posix/tests/posix_mknod_basic.phpt
@@ -15,4 +15,4 @@ var_dump(posix_mknod(NULL, NULL, NULL, NULL));
--EXPECT--
Basic test of POSIX posix_mknod function
bool(false)
-===DONE==== \ No newline at end of file
+===DONE====
diff --git a/ext/posix/tests/posix_setegid_basic.phpt b/ext/posix/tests/posix_setegid_basic.phpt
index 1fe6e8a097..e1885c81f1 100644
--- a/ext/posix/tests/posix_setegid_basic.phpt
+++ b/ext/posix/tests/posix_setegid_basic.phpt
@@ -9,4 +9,4 @@ Test function posix_setegid() by calling it with its expected arguments
var_dump(posix_setegid(posix_getegid()));
?>
--EXPECT--
-bool(true) \ No newline at end of file
+bool(true)
diff --git a/ext/posix/tests/posix_setgid_basic.phpt b/ext/posix/tests/posix_setgid_basic.phpt
index bb41e22989..d619476677 100644
--- a/ext/posix/tests/posix_setgid_basic.phpt
+++ b/ext/posix/tests/posix_setgid_basic.phpt
@@ -24,4 +24,4 @@ var_dump(posix_setgid( $gid ) );
*** Test by calling method or function with its expected arguments ***
bool(true)
===DONE===
- \ No newline at end of file
+
diff --git a/ext/posix/tests/posix_setgid_variation2.phpt b/ext/posix/tests/posix_setgid_variation2.phpt
index fb578f80ca..5a1b5a13a1 100644
--- a/ext/posix/tests/posix_setgid_variation2.phpt
+++ b/ext/posix/tests/posix_setgid_variation2.phpt
@@ -37,4 +37,3 @@ bool(false)
bool(false)
bool(false)
===DONE===
-
diff --git a/ext/posix/tests/posix_setgid_variation4.phpt b/ext/posix/tests/posix_setgid_variation4.phpt
index 1c791e9b0a..d85b5a900a 100644
--- a/ext/posix/tests/posix_setgid_variation4.phpt
+++ b/ext/posix/tests/posix_setgid_variation4.phpt
@@ -44,4 +44,3 @@ Warning: posix_setgid() expects parameter 1 to be int, float given in %s on line
bool(false)
bool(false)
===DONE===
-
diff --git a/ext/posix/tests/posix_setgid_variation5.phpt b/ext/posix/tests/posix_setgid_variation5.phpt
index baa4383dc3..ad9c79bd2b 100644
--- a/ext/posix/tests/posix_setgid_variation5.phpt
+++ b/ext/posix/tests/posix_setgid_variation5.phpt
@@ -35,4 +35,3 @@ bool(false)
bool(false)
bool(false)
===DONE===
-
diff --git a/ext/posix/tests/posix_setgid_variation6.phpt b/ext/posix/tests/posix_setgid_variation6.phpt
index 46174450d8..6be85e7a85 100644
--- a/ext/posix/tests/posix_setgid_variation6.phpt
+++ b/ext/posix/tests/posix_setgid_variation6.phpt
@@ -55,4 +55,4 @@ bool(false)
Error: 2 - posix_setgid() expects parameter 1 to be int, object given, %s
bool(false)
===DONE===
- \ No newline at end of file
+
diff --git a/ext/posix/tests/posix_setrlimit.phpt b/ext/posix/tests/posix_setrlimit.phpt
index fef2fa4c85..32124ca432 100644
--- a/ext/posix/tests/posix_setrlimit.phpt
+++ b/ext/posix/tests/posix_setrlimit.phpt
@@ -15,4 +15,3 @@ var_dump(posix_setrlimit(POSIX_RLIMIT_NOFILE, 129, 128));
--EXPECT--
bool(true)
bool(false)
-
diff --git a/ext/posix/tests/posix_uname_basic.phpt b/ext/posix/tests/posix_uname_basic.phpt
index c48694579a..49c2cf5609 100644
--- a/ext/posix/tests/posix_uname_basic.phpt
+++ b/ext/posix/tests/posix_uname_basic.phpt
@@ -25,4 +25,4 @@ Array
[machine] => %s
)
===DONE====
- \ No newline at end of file
+