diff options
author | Nicolas Grekas <nicolas.grekas@gmail.com> | 2015-08-01 09:16:55 +0200 |
---|---|---|
committer | Nicolas Grekas <nicolas.grekas@gmail.com> | 2015-08-01 09:26:17 +0200 |
commit | 6de838905fc31153ba80ad1a8f0919fe8ab58ad1 (patch) | |
tree | 3060a1faccdad404ebf9a5b6ee33da3326b6eeb3 /Http/Tests/Session/SessionAuthenticationStrategyTest.php | |
parent | 9df5f9dbab8f8c8b6777dbd45e07bd78b8729bc3 (diff) | |
download | symfony-security-6de838905fc31153ba80ad1a8f0919fe8ab58ad1.zip symfony-security-6de838905fc31153ba80ad1a8f0919fe8ab58ad1.tar.gz symfony-security-6de838905fc31153ba80ad1a8f0919fe8ab58ad1.tar.bz2 |
Remove code for PHP <5.5.9
Diffstat (limited to 'Http/Tests/Session/SessionAuthenticationStrategyTest.php')
-rw-r--r-- | Http/Tests/Session/SessionAuthenticationStrategyTest.php | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/Http/Tests/Session/SessionAuthenticationStrategyTest.php b/Http/Tests/Session/SessionAuthenticationStrategyTest.php index 4aef4b2..a1f960f 100644 --- a/Http/Tests/Session/SessionAuthenticationStrategyTest.php +++ b/Http/Tests/Session/SessionAuthenticationStrategyTest.php @@ -39,10 +39,6 @@ class SessionAuthenticationStrategyTest extends \PHPUnit_Framework_TestCase public function testSessionIsMigrated() { - if (PHP_VERSION_ID >= 50400 && PHP_VERSION_ID < 50411) { - $this->markTestSkipped('We cannot destroy the old session on PHP 5.4.0 - 5.4.10.'); - } - $session = $this->getMock('Symfony\Component\HttpFoundation\Session\SessionInterface'); $session->expects($this->once())->method('migrate')->with($this->equalTo(true)); @@ -50,19 +46,6 @@ class SessionAuthenticationStrategyTest extends \PHPUnit_Framework_TestCase $strategy->onAuthentication($this->getRequest($session), $this->getToken()); } - public function testSessionIsMigratedWithPhp54Workaround() - { - if (PHP_VERSION_ID < 50400 || PHP_VERSION_ID >= 50411) { - $this->markTestSkipped('This PHP version is not affected.'); - } - - $session = $this->getMock('Symfony\Component\HttpFoundation\Session\SessionInterface'); - $session->expects($this->once())->method('migrate')->with($this->equalTo(false)); - - $strategy = new SessionAuthenticationStrategy(SessionAuthenticationStrategy::MIGRATE); - $strategy->onAuthentication($this->getRequest($session), $this->getToken()); - } - public function testSessionIsInvalidated() { $session = $this->getMock('Symfony\Component\HttpFoundation\Session\SessionInterface'); |