1--TEST-- 2FPM: Set arrays in configuration 3--SKIPIF-- 4<?php include "skipif.inc"; ?> 5--FILE-- 6<?php 7 8require_once "tester.inc"; 9 10$cfg = <<<EOT 11[global] 12error_log = {{FILE:LOG}} 13pid = {{FILE:PID}} 14[unconfined] 15listen = {{ADDR}} 16access.suppress_path[] = /ping 17access.suppress_path[] = /health_check.php 18pm = static 19pm.max_children = 5 20php_value[error_reporting] = E_ALL 21php_value[date.timezone] = Europe/London 22php_admin_value[disable_functions] = eval 23php_flag[display_errors] = On 24php_admin_flag[log_errors] = 1 25EOT; 26 27$tester = new FPM\Tester($cfg); 28$tester->start(['-tt']); 29$tester->expectLogConfigOptions([ 30 'access.suppress_path[] = /ping', 31 'access.suppress_path[] = /health_check.php', 32 'php_value[error_reporting] = 32767', 33 'php_value[date.timezone] = Europe/London', 34 'php_value[display_errors] = 1', 35 'php_admin_value[disable_functions] = eval', 36 'php_admin_value[log_errors] = 1', 37]); 38 39 40?> 41Done 42--EXPECT-- 43Done 44--CLEAN-- 45<?php 46require_once "tester.inc"; 47FPM\Tester::clean(); 48?> 49