diff options
author | Vladimir Reznichenko <kalessil@gmail.com> | 2015-03-06 20:37:36 +0100 |
---|---|---|
committer | Fabien Potencier <fabien.potencier@gmail.com> | 2015-03-07 08:38:01 +0100 |
commit | 05fec30b749b3940e13a1115de6be46682de14dc (patch) | |
tree | 173185af0948bb2eb3db3e713fbae19d8cb59225 /Tests/Core/Util/SecureRandomTest.php | |
parent | 5d5a4e20a8f5db004e045a5b8137a6d455272ee4 (diff) | |
download | symfony-security-05fec30b749b3940e13a1115de6be46682de14dc.zip symfony-security-05fec30b749b3940e13a1115de6be46682de14dc.tar.gz symfony-security-05fec30b749b3940e13a1115de6be46682de14dc.tar.bz2 |
[2.3] [Config] [Console] [DependencyInjection] [DomCrawler] [Form] [HttpKernel] [PropertyAccess] [Security] [Translation] [Yaml] static code analysis, code cleanup
Diffstat (limited to 'Tests/Core/Util/SecureRandomTest.php')
-rw-r--r-- | Tests/Core/Util/SecureRandomTest.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Tests/Core/Util/SecureRandomTest.php b/Tests/Core/Util/SecureRandomTest.php index bd9fec5..a8cc660 100644 --- a/Tests/Core/Util/SecureRandomTest.php +++ b/Tests/Core/Util/SecureRandomTest.php @@ -41,7 +41,7 @@ class SecureRandomTest extends \PHPUnit_Framework_TestCase for ($j = 1; $j <= 5000; $j++) { $k = 4 * $j - 1; - $c[8 * $b[$k - 3] + 4 * $b[$k - 2] + 2 * $b[$k - 1] + $b[$k]] += 1; + ++$c[8 * $b[$k - 3] + 4 * $b[$k - 2] + 2 * $b[$k - 1] + $b[$k]]; } $f = 0; @@ -73,14 +73,14 @@ class SecureRandomTest extends \PHPUnit_Framework_TestCase $run = 6; } - $runs[$run] += 1; + ++$runs[$run]; }; $currentRun = 0; $lastBit = null; for ($i = 0; $i < 20000; $i++) { if ($lastBit === $b[$i]) { - $currentRun += 1; + ++$currentRun; } else { if ($currentRun > 0) { $addRun($currentRun); @@ -115,7 +115,7 @@ class SecureRandomTest extends \PHPUnit_Framework_TestCase $lastBit = null; for ($i = 0; $i < 20000; $i++) { if ($lastBit === $b[$i]) { - $currentRun += 1; + ++$currentRun; } else { if ($currentRun > $longestRun) { $longestRun = $currentRun; |