/
vshmidt
/
php
Обзор
Документация
Войти
/
vshmidt
/
php
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
sapi/fpm/tests/status-basic.phpt
50 строк
969 B
Nikita Popov
Revert "Do not check exact values of unstable metrices in FPM status test"
24 мар 2021, 12:07
24 мар 2021, 12:07
7407589
Код
Авторство
О чём код?
--TEST-- FPM: Status basic test --SKIPIF-- <?php include "skipif.inc"; ?> --FILE-- <?php require_once "tester.inc"; $cfg = <<<EOT [global] error_log = {{FILE:LOG}} [unconfined] listen = {{ADDR}} pm = static pm.max_children = 1 pm.status_path = /status EOT; $expectedStatusData = [ 'pool' => 'unconfined', 'process manager' => 'static', 'listen queue' => 0, 'max listen queue' => 0, 'idle processes' => 0, 'active processes' => 1, 'total processes' => 1, 'max active processes' => 1, 'max children reached' => 0, 'slow requests' => 0, ]; $tester = new FPM\Tester($cfg); $tester->start(); $tester->expectLogStartNotices(); $tester->request()->expectEmptyBody(); $tester->status($expectedStatusData); $tester->terminate(); $tester->expectLogTerminatingNotices(); $tester->close(); ?> Done --EXPECT-- Done --CLEAN-- <?php require_once "tester.inc"; FPM\Tester::clean(); ?>