1--TEST--
2FPM: bug68391 - Configuration inclusion in alphabetical order
3--SKIPIF--
4<?php
5include "skipif.inc";
6FPM\Tester::skipIfRoot();
7?>
8--FILE--
9<?php
10
11require_once "tester.inc";
12
13$cfg['main'] = <<<EOT
14[global]
15error_log = {{FILE:LOG}}
16log_level = notice
17include = {{INCLUDE:CONF}}
18EOT;
19
20$cfg['poolTemplate'] = <<<EOT
21[%name%]
22listen = {{ADDR[%name%]}}
23user = foo
24pm = ondemand
25pm.max_children = 5
26EOT;
27
28$cfg['names'] = ['cccc', 'aaaa', 'eeee', 'dddd', 'bbbb'];
29
30$tester = new FPM\Tester($cfg);
31$tester->start();
32$userMessage = "'user' directive is ignored when FPM is not running as root";
33$tester->expectLogNotice($userMessage, 'aaaa');
34$tester->expectLogNotice($userMessage, 'bbbb');
35$tester->expectLogNotice($userMessage, 'cccc');
36$tester->expectLogNotice($userMessage, 'dddd');
37$tester->expectLogNotice($userMessage, 'eeee');
38$tester->expectLogStartNotices();
39$tester->terminate();
40$tester->expectLogTerminatingNotices();
41$tester->close();
42
43?>
44Done
45--EXPECT--
46Done
47--CLEAN--
48<?php
49require_once "tester.inc";
50FPM\Tester::clean();
51?>
52