diff options
author | Bernhard Schussek <bschussek@gmail.com> | 2013-10-01 10:18:52 +0200 |
---|---|---|
committer | Bernhard Schussek <bschussek@gmail.com> | 2013-10-01 10:18:52 +0200 |
commit | 63b875c4cdd928aa4b0050e0e5fc4e8f64ad56ae (patch) | |
tree | b9521577f81edf18bb26c37d54a39e14222c65f2 | |
parent | 03f3cffb8fea9c73717ccf7ce71f3c119dd3b64e (diff) | |
download | symfony-security-63b875c4cdd928aa4b0050e0e5fc4e8f64ad56ae.zip symfony-security-63b875c4cdd928aa4b0050e0e5fc4e8f64ad56ae.tar.gz symfony-security-63b875c4cdd928aa4b0050e0e5fc4e8f64ad56ae.tar.bz2 |
[Security] Fixed test cases of the Csrf sub-component
-rw-r--r-- | Csrf/Tests/TokenStorage/NativeSessionTokenStorageTest.php | 4 | ||||
-rw-r--r-- | Csrf/Tests/TokenStorage/SessionTokenStorageTest.php | 2 |
2 files changed, 5 insertions, 1 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()); diff --git a/Csrf/Tests/TokenStorage/SessionTokenStorageTest.php b/Csrf/Tests/TokenStorage/SessionTokenStorageTest.php index 5c8c173..9ba7edb 100644 --- a/Csrf/Tests/TokenStorage/SessionTokenStorageTest.php +++ b/Csrf/Tests/TokenStorage/SessionTokenStorageTest.php @@ -32,7 +32,7 @@ class SessionTokenStorageTest extends \PHPUnit_Framework_TestCase protected function setUp() { - if (!class_exists('Symfony\Component\HttpFoundation\Session\SessionInterface')) { + if (!interface_exists('Symfony\Component\HttpFoundation\Session\SessionInterface')) { $this->markTestSkipped('The "HttpFoundation" component is not available'); } |