From 5fbb1733f67172e4111fa512961106f4733395db Mon Sep 17 00:00:00 2001 From: Ben Fuhrmannek Date: Sat, 7 Aug 2021 15:57:30 +0200 Subject: unit tests for ini protection feature --- src/tests/ini/ini_regexp.phpt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/tests/ini/ini_regexp.phpt (limited to 'src/tests/ini/ini_regexp.phpt') diff --git a/src/tests/ini/ini_regexp.phpt b/src/tests/ini/ini_regexp.phpt new file mode 100644 index 0000000..f6c5198 --- /dev/null +++ b/src/tests/ini/ini_regexp.phpt @@ -0,0 +1,19 @@ +--TEST-- +INI protection .regexp() +--SKIPIF-- + +--INI-- +sp.configuration_file={PWD}/config/sp.ini +--FILE-- + +--EXPECTF-- +string(7) "#000aBc" + +Warning: [snuffleupagus][0.0.0.0][ini_protection][log] INI value does not match regex in %a/ini_regexp.php on line 5 +string(7) "#000aBc" -- cgit v1.3