diff options
| author | jvoisin | 2017-12-28 15:14:02 +0100 |
|---|---|---|
| committer | jvoisin | 2017-12-28 15:14:02 +0100 |
| commit | 62c48bf9a85e0294b7b32cea438e904e1cd50669 (patch) | |
| tree | 7c7e88debd8b6873fe444c6ed43a674827cc8c04 /src/tests/example_configuration.phpt | |
| parent | b21139d922268251a19dd16f98248551863fe3e5 (diff) | |
Show in the phpinfo() is the config is valid
This should close #39
Diffstat (limited to 'src/tests/example_configuration.phpt')
| -rw-r--r-- | src/tests/example_configuration.phpt | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/tests/example_configuration.phpt b/src/tests/example_configuration.phpt index b7fec48..74bdb49 100644 --- a/src/tests/example_configuration.phpt +++ b/src/tests/example_configuration.phpt | |||
| @@ -6,7 +6,15 @@ Shipped configuration | |||
| 6 | sp.configuration_file={PWD}/../../config/examples.ini | 6 | sp.configuration_file={PWD}/../../config/examples.ini |
| 7 | --FILE-- | 7 | --FILE-- |
| 8 | <?php | 8 | <?php |
| 9 | echo 0; | 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 | } | ||
| 10 | ?> | 18 | ?> |
| 11 | --EXPECTF-- | 19 | --EXPECTF-- |
| 12 | 0 | 20 | win |
