xref: /PHP-8.2/sapi/fpm/tests/status-ping.phpt (revision 43bc53a7)
1--TEST--
2FPM: Ping on the status invisible pool
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}}
13[unconfined]
14listen = {{ADDR}}
15pm = static
16pm.max_children = 1
17pm.status_listen = {{ADDR[status]}}
18pm.status_path = /status
19ping.path = /ping
20ping.response = pong
21EOT;
22
23$tester = new FPM\Tester($cfg);
24$tester->start();
25$tester->expectLogStartNotices();
26$tester->ping('{{ADDR[status]}}');
27usleep(100000);
28$tester->terminate();
29$tester->expectLogTerminatingNotices();
30$tester->close();
31
32?>
33Done
34--EXPECT--
35Done
36--CLEAN--
37<?php
38require_once "tester.inc";
39FPM\Tester::clean();
40?>
41