Skip to content

Commit 0ffddc1

Browse files
authored
Skip downgraded privilege test for non-root users (#2)
1 parent 786d07c commit 0ffddc1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/StreamOpenTest.php

+3
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ public function shouldNotOpenInvalidQueryStringURLs() {
5555
@requires extension sockets
5656
*/
5757
public function shouldNotOpenWithoutPrivileges() {
58+
if (posix_getuid()) {
59+
$this->markTestSkipped('Not running as root');
60+
}
5861
$dev = $this->getNetDevice();
5962

6063
$user = posix_getpwnam('daemon');

0 commit comments

Comments
 (0)