summaryrefslogtreecommitdiff
path: root/ext/posix
diff options
context:
space:
mode:
authorPeter Kokot <peterkokot@gmail.com>2018-10-15 04:31:31 +0200
committerPeter Kokot <peterkokot@gmail.com>2018-10-15 04:31:31 +0200
commitf1d7e3ca0b70f910fcecef0278de9c15440ca3c0 (patch)
tree70af7290bf6c0b06f223254537b502013ade302e /ext/posix
parentf98c916845571deeab189fb2ab52a17aef49edb8 (diff)
downloadphp-git-f1d7e3ca0b70f910fcecef0278de9c15440ca3c0.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_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_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_variation6.phpt2
-rw-r--r--ext/posix/tests/posix_setrlimit.phpt1
-rw-r--r--ext/posix/tests/posix_uname_basic.phpt2
14 files changed, 13 insertions, 14 deletions
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_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 c5c98b1a49..f6d264b74b 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()));
?>
--EXPECTF--
-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 a1f4b41869..70cfff960b 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_variation6.phpt b/ext/posix/tests/posix_setgid_variation6.phpt
index 70882d5b4a..c9b76a505b 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 integer, 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 88d62a2d2f..5917e964c4 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));
--EXPECTF--
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
+