bug68381-log-level-warning.phpt 599 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. --TEST--
  2. FPM: bug68381 - Log messages with warning level only
  3. --SKIPIF--
  4. <?php
  5. include "skipif.inc";
  6. ?>
  7. --FILE--
  8. <?php
  9. require_once "tester.inc";
  10. $cfg = <<<EOT
  11. [global]
  12. error_log = {{FILE:LOG}}
  13. log_level = warning
  14. [unconfined]
  15. listen = {{ADDR}}
  16. pm = dynamic
  17. pm.max_children = 5
  18. pm.start_servers = 2
  19. pm.min_spare_servers = 1
  20. pm.max_spare_servers = 3
  21. EOT;
  22. $tester = new FPM\Tester($cfg);
  23. $tester->start();
  24. $tester->checkConnection();
  25. $tester->terminate();
  26. $tester->expectNoLogMessages();
  27. $tester->close();
  28. ?>
  29. Done
  30. --EXPECT--
  31. Done
  32. --CLEAN--
  33. <?php
  34. require_once "tester.inc";
  35. FPM\Tester::clean();
  36. ?>