diff options
| author | jvoisin | 2018-01-02 12:02:41 +0100 |
|---|---|---|
| committer | jvoisin | 2018-01-02 12:02:41 +0100 |
| commit | 126f6d96a3b8c4633723dd4161c970c9c8ac37f7 (patch) | |
| tree | dc997177f4fa8a7fd52eadbf1348e9185d3b0cbd /src | |
| parent | e66e5cef453bfd4d427f580111d89ee3be35f115 (diff) | |
Remove some useless code in the testsuite
Diffstat (limited to 'src')
| -rw-r--r-- | src/tests/deny_writable_execution_simulation.phpt | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/tests/deny_writable_execution_simulation.phpt b/src/tests/deny_writable_execution_simulation.phpt index 549fb81..9cfe56c 100644 --- a/src/tests/deny_writable_execution_simulation.phpt +++ b/src/tests/deny_writable_execution_simulation.phpt | |||
| @@ -3,16 +3,6 @@ Readonly execution attempt (simulation mode) | |||
| 3 | --SKIPIF-- | 3 | --SKIPIF-- |
| 4 | <?php | 4 | <?php |
| 5 | if (!extension_loaded("snuffleupagus")) print "skip"; | 5 | if (!extension_loaded("snuffleupagus")) print "skip"; |
| 6 | |||
| 7 | $filename = __DIR__ . '/test.txt'; | ||
| 8 | |||
| 9 | @unlink($filename); | ||
| 10 | |||
| 11 | file_put_contents($filename, 'a'); | ||
| 12 | chmod($filename, 0400); | ||
| 13 | |||
| 14 | if (is_writable($filename)) print "skip";; | ||
| 15 | @unlink($filename); | ||
| 16 | ?> | 6 | ?> |
| 17 | --INI-- | 7 | --INI-- |
| 18 | sp.configuration_file={PWD}/config/config_disable_writable_simulation.ini | 8 | sp.configuration_file={PWD}/config/config_disable_writable_simulation.ini |
