Skip to content

Commit

Permalink
Add a test for the syslog output of the logs
Browse files Browse the repository at this point in the history
  • Loading branch information
jvoisin committed Aug 5, 2020
1 parent e8d3cd9 commit 71721a0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/tests/config/syslog.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
sp.global.secret_key("abcdef");
sp.unserialize_hmac.enable();
sp.log_media("syslog");
11 changes: 11 additions & 0 deletions src/tests/syslog.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--TEST--
Check the syslog output
--SKIPIF--
<?php if (!extension_loaded("snuffleupagus")) print "skip"; ?>
--INI--
sp.configuration_file={PWD}/config/syslog.ini
--FILE--
<?php
var_dump(unserialize('s:1:"a";'));
?>
--EXPECTF--

0 comments on commit 71721a0

Please sign in to comment.