Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
opt
/
php-8.3.12-202410171038
/
share
/
test
/
Log
/
tests
/
//opt/php-8.3.12-202410171038/share/test/Log/tests/display.phpt
--TEST-- Log: Display Handler --INI-- date.timezone=UTC --FILE-- <?php require_once 'Log.php'; function test($name, $conf) { echo "\nTesting $name Configuration\n"; echo "------------------------------------------------------\n"; $logger = Log::factory('display', '', $name, $conf); $logger->log("Info", PEAR_LOG_INFO); $logger->log("Error", PEAR_LOG_ERR); $logger->log("Debug", PEAR_LOG_DEBUG); $logger->log("Multi\nLine\nEntry", PEAR_LOG_INFO); echo "\n"; } test('Default', []); test('Line Break', ['linebreak' => "\n"]); test('Format', ['lineFormat' => '<!-- %4$s -->']); test('Prepend / Append', ['error_prepend' => '<tt>', 'error_append' => '</tt>']); --EXPECT-- Testing Default Configuration ------------------------------------------------------ <b>info</b>: Info<br /> <b>error</b>: Error<br /> <b>debug</b>: Debug<br /> <b>info</b>: Multi<br /> Line<br /> Entry<br /> Testing Line Break Configuration ------------------------------------------------------ <b>info</b>: Info <b>error</b>: Error <b>debug</b>: Debug <b>info</b>: Multi<br /> Line<br /> Entry Testing Format Configuration ------------------------------------------------------ <!-- Info --><br /> <!-- Error --><br /> <!-- Debug --><br /> <!-- Multi<br /> Line<br /> Entry --><br /> Testing Prepend / Append Configuration ------------------------------------------------------ <tt><b>info</b>: Info</tt><br /> <tt><b>error</b>: Error</tt><br /> <tt><b>debug</b>: Debug</tt><br /> <tt><b>info</b>: Multi<br /> Line<br /> Entry</tt><br />