diff options
| author | jvoisin | 2018-02-22 10:53:15 +0100 |
|---|---|---|
| committer | jvoisin | 2018-02-22 10:53:15 +0100 |
| commit | 4ce02663339b6b0976b69f041904b8610dd90cea (patch) | |
| tree | 413f8689a2ba8d8fa09da6825220a4ad22ee832b /src | |
| parent | 696ebc4ae68f4c7c2b803c917de365b98621b3a8 (diff) | |
Refactor a bit our rules
Diffstat (limited to 'src')
| -rw-r--r-- | src/tests/example_configuration.phpt | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/tests/example_configuration.phpt b/src/tests/example_configuration.phpt deleted file mode 100644 index 6c2e82d..0000000 --- a/src/tests/example_configuration.phpt +++ /dev/null | |||
| @@ -1,20 +0,0 @@ | |||
| 1 | --TEST-- | ||
| 2 | Shipped configuration | ||
| 3 | --SKIPIF-- | ||
| 4 | <?php if (!extension_loaded("snuffleupagus")) die "skip"; ?> | ||
| 5 | --INI-- | ||
| 6 | sp.configuration_file={PWD}/../../config/examples.rules | ||
| 7 | --FILE-- | ||
| 8 | <?php | ||
| 9 | ob_start(); | ||
| 10 | phpinfo(); | ||
| 11 | $info = ob_get_clean(); | ||
| 12 | ob_get_clean(); | ||
| 13 | if (strstr($info, 'Valid config => yes') !== FALSE) { | ||
| 14 | echo "win"; | ||
| 15 | } else { | ||
| 16 | echo "lose"; | ||
| 17 | } | ||
| 18 | ?> | ||
| 19 | --EXPECTF-- | ||
| 20 | win | ||
