skipif.inc 377 B

123456789101112131415
  1. <?php
  2. // Do not run on Windows
  3. if (substr(PHP_OS, 0, 3) == 'WIN') {
  4. die("skip not for Windows");
  5. }
  6. // Running as root is not allowed without TEST_FPM_RUN_AS_ROOT env
  7. if (!getmyuid() && !getenv('TEST_FPM_RUN_AS_ROOT')) {
  8. die('skip Refusing to run as root');
  9. }
  10. require_once "tester.inc";
  11. if (!FPM\Tester::findExecutable()) {
  12. die("skip php-fpm binary not found");
  13. }