aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/UtilsTest.php
diff options
context:
space:
mode:
authorVirtualTam <virtualtam@flibidi.net>2015-11-24 01:42:52 +0100
committerVirtualTam <virtualtam@flibidi.net>2015-11-24 01:42:52 +0100
commit4409b9eb0fb318f205ce7311bc41f10cfc716675 (patch)
tree013c6f7c590ed936ca7d3244e1ed89c470500df4 /tests/UtilsTest.php
parent0def004963c62ff1edfce16272a87ba9f0c87e16 (diff)
parentc9cf2715f0ec10d51d881d386de9fa818f76af46 (diff)
downloadShaarli-4409b9eb0fb318f205ce7311bc41f10cfc716675.tar.gz
Shaarli-4409b9eb0fb318f205ce7311bc41f10cfc716675.tar.zst
Shaarli-4409b9eb0fb318f205ce7311bc41f10cfc716675.zip
Merge pull request #389 from virtualtam/utils/check-php-version
application: move checkPHPVersion from Utils to ApplicationUtils
Diffstat (limited to 'tests/UtilsTest.php')
-rw-r--r--tests/UtilsTest.php31
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