1--TEST--
2FPM: Process user setting ignored when FPM is not running as root
3--SKIPIF--
4<?php
5include "skipif.inc";
6FPM\Tester::skipIfRoot();
7?>
8--FILE--
9<?php
10
11require_once "tester.inc";
12
13$cfg = <<<EOT
14[global]
15error_log = {{FILE:LOG}}
16[unconfined]
17listen = {{ADDR}}
18user = foo
19ping.path = /ping
20ping.response = pong
21pm = dynamic
22pm.max_children = 5
23pm.start_servers = 2
24pm.min_spare_servers = 1
25pm.max_spare_servers = 3
26EOT;
27
28$tester = new FPM\Tester($cfg);
29$tester->start();
30$tester->expectLogNotice(
31    "'user' directive is ignored when FPM is not running as root",
32    'unconfined'
33);
34$tester->expectLogStartNotices();
35$tester->terminate();
36$tester->expectLogTerminatingNotices();
37$tester->close();
38
39?>
40Done
41--EXPECT--
42Done
43--CLEAN--
44<?php
45require_once "tester.inc";
46FPM\Tester::clean();
47?>
48