summaryrefslogtreecommitdiffstats
path: root/Tests/Core/Util/SecureRandomTest.php
diff options
context:
space:
mode:
authorFabien Potencier <fabien.potencier@gmail.com>2012-10-28 09:01:53 +0100
committerFabien Potencier <fabien.potencier@gmail.com>2012-10-28 09:01:53 +0100
commitc7e238ec401e746a6423687097ca26d7f50d0860 (patch)
tree7b1f48d14c5b6caa541f324cb1d005c31f9f1e8a /Tests/Core/Util/SecureRandomTest.php
parentcd11bd304daebd23b42566a1bbc8ec3a543e3c8d (diff)
downloadsymfony-security-c7e238ec401e746a6423687097ca26d7f50d0860.zip
symfony-security-c7e238ec401e746a6423687097ca26d7f50d0860.tar.gz
symfony-security-c7e238ec401e746a6423687097ca26d7f50d0860.tar.bz2
[Security] fixed tests when OpenSSL is not installed
Diffstat (limited to 'Tests/Core/Util/SecureRandomTest.php')
-rwxr-xr-xTests/Core/Util/SecureRandomTest.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/Tests/Core/Util/SecureRandomTest.php b/Tests/Core/Util/SecureRandomTest.php
index 1a4bdbd..230a26a 100755
--- a/Tests/Core/Util/SecureRandomTest.php
+++ b/Tests/Core/Util/SecureRandomTest.php
@@ -154,13 +154,10 @@ class SecureRandomTest extends \PHPUnit_Framework_TestCase
{
$secureRandoms = array();
- // openssl
- $secureRandom = new SecureRandom();
// only add if openssl is indeed present
+ $secureRandom = new SecureRandom();
if ($this->hasOpenSsl($secureRandom)) {
$secureRandoms[] = array($secureRandom);
- } else {
- $this->markTestSkipped('OpenSSL is not available');
}
// no-openssl with custom seed provider