summaryrefslogtreecommitdiffstats
path: root/Core/Tests/Encoder/BCryptPasswordEncoderTest.php
diff options
context:
space:
mode:
authorFabien Potencier <fabien.potencier@gmail.com>2015-01-08 23:22:42 +0100
committerFabien Potencier <fabien.potencier@gmail.com>2015-01-09 14:24:18 +0100
commit3e3d154b833bea4eeb8e3f56e2b4f3a602f43ea8 (patch)
treee963a2b3980789f831ef2ee942126aa07eb6515d /Core/Tests/Encoder/BCryptPasswordEncoderTest.php
parent65288d547615f73fb0fe800c8cd0a8e6bacbaa5d (diff)
downloadsymfony-security-3e3d154b833bea4eeb8e3f56e2b4f3a602f43ea8.zip
symfony-security-3e3d154b833bea4eeb8e3f56e2b4f3a602f43ea8.tar.gz
symfony-security-3e3d154b833bea4eeb8e3f56e2b4f3a602f43ea8.tar.bz2
removed code for PHP < 5.3.9
Diffstat (limited to 'Core/Tests/Encoder/BCryptPasswordEncoderTest.php')
-rw-r--r--Core/Tests/Encoder/BCryptPasswordEncoderTest.php11
1 files changed, 0 insertions, 11 deletions
diff --git a/Core/Tests/Encoder/BCryptPasswordEncoderTest.php b/Core/Tests/Encoder/BCryptPasswordEncoderTest.php
index 2f7b845..4d9ca6d 100644
--- a/Core/Tests/Encoder/BCryptPasswordEncoderTest.php
+++ b/Core/Tests/Encoder/BCryptPasswordEncoderTest.php
@@ -47,8 +47,6 @@ class BCryptPasswordEncoderTest extends \PHPUnit_Framework_TestCase
public function testResultLength()
{
- $this->skipIfPhpVersionIsNotSupported();
-
$encoder = new BCryptPasswordEncoder(self::VALID_COST);
$result = $encoder->encodePassword(self::PASSWORD, null);
$this->assertEquals(60, strlen($result));
@@ -56,21 +54,12 @@ class BCryptPasswordEncoderTest extends \PHPUnit_Framework_TestCase
public function testValidation()
{
- $this->skipIfPhpVersionIsNotSupported();
-
$encoder = new BCryptPasswordEncoder(self::VALID_COST);
$result = $encoder->encodePassword(self::PASSWORD, null);
$this->assertTrue($encoder->isPasswordValid($result, self::PASSWORD, null));
$this->assertFalse($encoder->isPasswordValid($result, 'anotherPassword', null));
}
- private function skipIfPhpVersionIsNotSupported()
- {
- if (PHP_VERSION_ID < 50307) {
- $this->markTestSkipped('Requires PHP >= 5.3.7');
- }
- }
-
/**
* @expectedException \Symfony\Component\Security\Core\Exception\BadCredentialsException
*/