summaryrefslogtreecommitdiffstats
path: root/Csrf/Tests/TokenStorage/NativeSessionTokenStorageTest.php
diff options
context:
space:
mode:
authorChristian Flothmann <christian.flothmann@xabbuh.de>2014-11-23 21:10:39 +0100
committerChristian Flothmann <christian.flothmann@xabbuh.de>2014-11-23 21:10:39 +0100
commitc560c7874252784dc23f8722a52fd4e3a027f117 (patch)
tree093e04ce46b42aa56584b22642888fb8795a82bb /Csrf/Tests/TokenStorage/NativeSessionTokenStorageTest.php
parent4fb524b3675e3fc507a841e82b3344be050f5030 (diff)
downloadsymfony-security-c560c7874252784dc23f8722a52fd4e3a027f117.zip
symfony-security-c560c7874252784dc23f8722a52fd4e3a027f117.tar.gz
symfony-security-c560c7874252784dc23f8722a52fd4e3a027f117.tar.bz2
compare version using PHP_VERSION_ID
This continues the work started in #12497 on the `2.3` branch.
Diffstat (limited to 'Csrf/Tests/TokenStorage/NativeSessionTokenStorageTest.php')
-rw-r--r--Csrf/Tests/TokenStorage/NativeSessionTokenStorageTest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Csrf/Tests/TokenStorage/NativeSessionTokenStorageTest.php b/Csrf/Tests/TokenStorage/NativeSessionTokenStorageTest.php
index 724806c..7ae2779 100644
--- a/Csrf/Tests/TokenStorage/NativeSessionTokenStorageTest.php
+++ b/Csrf/Tests/TokenStorage/NativeSessionTokenStorageTest.php
@@ -51,7 +51,7 @@ class NativeSessionTokenStorageTest extends \PHPUnit_Framework_TestCase
public function testStoreTokenInClosedSessionWithExistingSessionId()
{
- if (version_compare(PHP_VERSION, '5.4', '<')) {
+ if (PHP_VERSION_ID < 50400) {
$this->markTestSkipped('This test requires PHP 5.4 or later.');
}