summaryrefslogtreecommitdiffstats
path: root/Core/Tests/Encoder
diff options
context:
space:
mode:
authorGraham Campbell <graham@mineuk.com>2014-11-30 21:18:40 +0000
committerNicolas Grekas <nicolas.grekas@gmail.com>2014-12-30 11:17:11 +0100
commitd278266e82082b8605dffb29151bd77b9f3d334f (patch)
treef03b1102eb11208ab010e3f57ba036e555a167e6 /Core/Tests/Encoder
parentcf187660de37c0dc7a4dec4475845c314e8fb91f (diff)
downloadsymfony-security-d278266e82082b8605dffb29151bd77b9f3d334f.zip
symfony-security-d278266e82082b8605dffb29151bd77b9f3d334f.tar.gz
symfony-security-d278266e82082b8605dffb29151bd77b9f3d334f.tar.bz2
[3.0] Removed some old hacks
Diffstat (limited to 'Core/Tests/Encoder')
-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
*/