1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 01:02:25 +01:00
Files
archived-php-src/ext/standard/tests/network/syslog_basic.phpt
2018-10-14 19:46:15 +02:00

27 lines
589 B
PHP

--TEST--
Test syslog() function : basic functionality
--FILE--
<?php
/* Prototype : bool syslog(int priority, string message)
* Description: Generate a system log message
* Source code: ext/standard/syslog.c
* Alias to functions:
*/
echo "*** Testing syslog() : basic functionality ***\n";
// Initialise all required variables
$priority = LOG_WARNING;
$message = 'A test syslog call invocation';
// Calling syslog() with all possible arguments
var_dump( syslog($priority, $message) );
?>
===DONE===
--EXPECT--
*** Testing syslog() : basic functionality ***
bool(true)
===DONE===