1--TEST--
2FPM: bug68591 - config test user existence
3--SKIPIF--
4<?php
5include "skipif.inc";
6?>
7--FILE--
8<?php
9
10require_once "tester.inc";
11
12$cfg = <<<EOT
13[global]
14error_log = {{FILE:LOG}}
15[unconfined]
16listen = {{ADDR:UDS}}
17user = aaaaaa
18pm = dynamic
19pm.max_children = 5
20pm.start_servers = 2
21pm.min_spare_servers = 1
22pm.max_spare_servers = 3
23EOT;
24
25$tester = new FPM\Tester($cfg);
26$tester->testConfig();
27
28?>
29Done
30--EXPECT--
31ERROR: [pool unconfined] cannot get uid for user 'aaaaaa'
32ERROR: FPM initialization failed
33Done
34--CLEAN--
35<?php
36require_once "tester.inc";
37FPM\Tester::clean();
38?>
39