1<?php
2
3$envUser = getenv("USER") ?: getenv("USERNAME");
4
5if ($envUser === false) {
6    die("skip This test is not executed without environment variables USER/USERNAME");
7}
8
9if (function_exists("posix_geteuid")) {
10    if (posix_geteuid() === 0) {
11        die("skip This test is not executed with root user");
12    }
13}
14
15?>
16