summaryrefslogtreecommitdiffstats
path: root/Csrf/Tests/TokenStorage/NativeSessionTokenStorageTest.php
diff options
context:
space:
mode:
authorBernhard Schussek <bschussek@gmail.com>2013-10-01 10:18:52 +0200
committerBernhard Schussek <bschussek@gmail.com>2013-10-01 10:18:52 +0200
commit63b875c4cdd928aa4b0050e0e5fc4e8f64ad56ae (patch)
treeb9521577f81edf18bb26c37d54a39e14222c65f2 /Csrf/Tests/TokenStorage/NativeSessionTokenStorageTest.php
parent03f3cffb8fea9c73717ccf7ce71f3c119dd3b64e (diff)
downloadsymfony-security-63b875c4cdd928aa4b0050e0e5fc4e8f64ad56ae.zip
symfony-security-63b875c4cdd928aa4b0050e0e5fc4e8f64ad56ae.tar.gz
symfony-security-63b875c4cdd928aa4b0050e0e5fc4e8f64ad56ae.tar.bz2
[Security] Fixed test cases of the Csrf sub-component
Diffstat (limited to 'Csrf/Tests/TokenStorage/NativeSessionTokenStorageTest.php')
-rw-r--r--Csrf/Tests/TokenStorage/NativeSessionTokenStorageTest.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/Csrf/Tests/TokenStorage/NativeSessionTokenStorageTest.php b/Csrf/Tests/TokenStorage/NativeSessionTokenStorageTest.php
index 69df061..b62eeef 100644
--- a/Csrf/Tests/TokenStorage/NativeSessionTokenStorageTest.php
+++ b/Csrf/Tests/TokenStorage/NativeSessionTokenStorageTest.php
@@ -51,6 +51,10 @@ class NativeSessionTokenStorageTest extends \PHPUnit_Framework_TestCase
public function testStoreTokenInClosedSessionWithExistingSessionId()
{
+ if (version_compare(PHP_VERSION, '5.4', '<')) {
+ $this->markTestSkipped('This test requires PHP 5.4 or later.');
+ }
+
session_id('foobar');
$this->assertSame(PHP_SESSION_NONE, session_status());