diff options
author | VirtualTam <virtualtam@flibidi.net> | 2015-11-24 01:36:12 +0100 |
---|---|---|
committer | VirtualTam <virtualtam@flibidi.net> | 2015-11-24 01:40:44 +0100 |
commit | c9cf2715f0ec10d51d881d386de9fa818f76af46 (patch) | |
tree | 013c6f7c590ed936ca7d3244e1ed89c470500df4 /tests/UtilsTest.php | |
parent | 0def004963c62ff1edfce16272a87ba9f0c87e16 (diff) | |
download | Shaarli-c9cf2715f0ec10d51d881d386de9fa818f76af46.tar.gz Shaarli-c9cf2715f0ec10d51d881d386de9fa818f76af46.tar.zst Shaarli-c9cf2715f0ec10d51d881d386de9fa818f76af46.zip |
application: move checkPHPVersion from Utils to ApplicationUtils
Relates to #372
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
Diffstat (limited to 'tests/UtilsTest.php')
-rw-r--r-- | tests/UtilsTest.php | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/tests/UtilsTest.php b/tests/UtilsTest.php index 311d4bfb..4847ea94 100644 --- a/tests/UtilsTest.php +++ b/tests/UtilsTest.php | |||
@@ -139,37 +139,6 @@ class UtilsTest extends PHPUnit_Framework_TestCase | |||
139 | } | 139 | } |
140 | 140 | ||
141 | /** | 141 | /** |
142 | * Check supported PHP versions | ||
143 | */ | ||
144 | public function testCheckSupportedPHPVersion() | ||
145 | { | ||
146 | $minVersion = '5.3'; | ||
147 | checkPHPVersion($minVersion, '5.4.32'); | ||
148 | checkPHPVersion($minVersion, '5.5'); | ||
149 | checkPHPVersion($minVersion, '5.6.10'); | ||
150 | } | ||
151 | |||
152 | /** | ||
153 | * Check a unsupported PHP version | ||
154 | * @expectedException Exception | ||
155 | * @expectedExceptionMessageRegExp /Your PHP version is obsolete/ | ||
156 | */ | ||
157 | public function testCheckSupportedPHPVersion51() | ||
158 | { | ||
159 | checkPHPVersion('5.3', '5.1.0'); | ||
160 | } | ||
161 | |||
162 | /** | ||
163 | * Check another unsupported PHP version | ||
164 | * @expectedException Exception | ||
165 | * @expectedExceptionMessageRegExp /Your PHP version is obsolete/ | ||
166 | */ | ||
167 | public function testCheckSupportedPHPVersion52() | ||
168 | { | ||
169 | checkPHPVersion('5.3', '5.2'); | ||
170 | } | ||
171 | |||
172 | /** | ||
173 | * Test is_session_id_valid with a valid ID - TEST ALL THE HASHES! | 142 | * Test is_session_id_valid with a valid ID - TEST ALL THE HASHES! |
174 | * | 143 | * |
175 | * This tests extensively covers all hash algorithms / bit representations | 144 | * This tests extensively covers all hash algorithms / bit representations |