1--TEST-- 2FPM: set pm.max_spawn_rate 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}} 15log_level = notice 16[unconfined] 17listen = {{ADDR}} 18pm = dynamic 19pm.max_children = 5 20pm.start_servers = 2 21pm.min_spare_servers = 1 22pm.max_spare_servers = 3 23pm.max_spawn_rate = 64 24ping.path = /ping 25ping.response = pong 26EOT; 27 28$tester = new FPM\Tester($cfg); 29$tester->start(); 30$tester->expectLogStartNotices(); 31$tester->ping(); 32$tester->terminate(); 33$tester->expectLogTerminatingNotices(); 34$tester->close(); 35 36?> 37Done 38--EXPECT-- 39Done 40--CLEAN-- 41<?php 42require_once "tester.inc"; 43FPM\Tester::clean(); 44?> 45