diff options
| author | jvoisin | 2018-12-26 12:52:40 +0100 |
|---|---|---|
| committer | jvoisin | 2018-12-26 12:52:40 +0100 |
| commit | e34f0031db4836d8dab261ecece112c09b2c76ea (patch) | |
| tree | 8f5cad380d8acb699480584eb3135c860d6aa85e /src/tests | |
| parent | 2545525dc40cd8e6ace33ac1d2771369ada4af29 (diff) | |
Bump a bit the coverage
Diffstat (limited to 'src/tests')
| -rw-r--r-- | src/tests/config/disabled_functions_cidr.ini | 5 | ||||
| -rw-r--r-- | src/tests/disabled_functions_cidr_6.phpt | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/tests/config/disabled_functions_cidr.ini b/src/tests/config/disabled_functions_cidr.ini index 21ed4b6..f69ce07 100644 --- a/src/tests/config/disabled_functions_cidr.ini +++ b/src/tests/config/disabled_functions_cidr.ini | |||
| @@ -1,8 +1,9 @@ | |||
| 1 | sp.disable_function.function("system").drop().cidr("2001:ab9:a::123/64"); | ||
| 1 | sp.disable_function.function("system").drop().cidr("192.168.0.1/16"); | 2 | sp.disable_function.function("system").drop().cidr("192.168.0.1/16"); |
| 2 | sp.disable_function.function("system").drop().cidr("127.0.0.1/8"); | 3 | sp.disable_function.function("system").drop().cidr("127.0.0.1/8"); |
| 3 | sp.disable_function.function("printf").drop().cidr("10.0.0.1/8"); | 4 | sp.disable_function.function("printf").drop().cidr("10.0.0.1/8"); |
| 4 | sp.disable_function.function("strpos").drop().cidr("0:0:0:0:0:0:0:1/128"); | 5 | sp.disable_function.function("strpos").drop().cidr("127.0.0.2/4"); |
| 5 | sp.disable_function.function("strpos").drop().cidr("::ffff:192.0.2.128/128"); | 6 | sp.disable_function.function("strpos").drop().cidr("::ffff:192.0.2.128/128"); |
| 6 | sp.disable_function.function("strpos").drop().cidr("2001:ab9:a::123/64"); | 7 | sp.disable_function.function("strpos").drop().cidr("2001:ab9:a::123/64"); |
| 7 | sp.disable_function.function("strpos").drop().cidr("2001:0db8:0000:0000:0000:ff00:0042:8329/24"); | 8 | sp.disable_function.function("strpos").drop().cidr("2001:0db8:f000:f000:f000:ff00:0042:8329/124"); |
| 8 | sp.disable_function.function("printf").drop().cidr("2002:0db8:0000:0000:0000:ff00:0042:8329/24"); | 9 | sp.disable_function.function("printf").drop().cidr("2002:0db8:0000:0000:0000:ff00:0042:8329/24"); |
diff --git a/src/tests/disabled_functions_cidr_6.phpt b/src/tests/disabled_functions_cidr_6.phpt index 92e542c..17822cd 100644 --- a/src/tests/disabled_functions_cidr_6.phpt +++ b/src/tests/disabled_functions_cidr_6.phpt | |||
| @@ -4,7 +4,7 @@ Disable functions | |||
| 4 | <?php if (!extension_loaded("snuffleupagus")) die "skip"; ?> | 4 | <?php if (!extension_loaded("snuffleupagus")) die "skip"; ?> |
| 5 | --ENV-- | 5 | --ENV-- |
| 6 | return <<<EOF | 6 | return <<<EOF |
| 7 | REMOTE_ADDR=2001:0db8:0000:0000:0000:ff00:0042:8328 | 7 | REMOTE_ADDR=2001:0db8:f000:f000:f000:ff00:0042:8328 |
| 8 | EOF; | 8 | EOF; |
| 9 | --INI-- | 9 | --INI-- |
| 10 | sp.configuration_file={PWD}/config/disabled_functions_cidr.ini | 10 | sp.configuration_file={PWD}/config/disabled_functions_cidr.ini |
| @@ -14,4 +14,4 @@ strpos("a", "b"); | |||
| 14 | printf(1337); | 14 | printf(1337); |
| 15 | ?> | 15 | ?> |
| 16 | --EXPECTF-- | 16 | --EXPECTF-- |
| 17 | Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'strpos' in %a/disabled_functions_cidr_6.php on line 2 \ No newline at end of file | 17 | Fatal error: [snuffleupagus][disabled_function] Aborted execution on call of the function 'strpos' in %a/disabled_functions_cidr_6.php on line 2 |
