Skip to content

Commit

Permalink
Add a test for issue #479
Browse files Browse the repository at this point in the history
  • Loading branch information
jvoisin committed Jan 15, 2024
1 parent 4b7967d commit 8ea689e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/tests/config/issue_479.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
sp.global.secret_key("1234567890abcdef");
sp.harden_random.enable();
sp.xxe_protection.enable();
12 changes: 12 additions & 0 deletions src/tests/regressions/issue_479.phpt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
--TEST--
Regression test for https://github.com/jvoisin/snuffleupagus/issues/479
--SKIPIF--
<?php if (!extension_loaded("snuffleupagus") || !extension_loaded("simplexml")) print("skip"); ?>
--INI--
sp.configuration_file={PWD}/../config/issue_479.ini
--FILE--
<?php
echo 1+1;
?>
--EXPECTF--
2

0 comments on commit 8ea689e

Please sign in to comment.