Completed
Push — master ( 247290...01d05f )
by Michael
08:30
created

RandTest::provideGenerate()   A

Complexity

Conditions 3
Paths 3

Size

Total Lines 8
Code Lines 6

Duplication

Lines 8
Ratio 100 %

Importance

Changes 0
Metric Value
cc 3
eloc 6
nc 3
nop 0
dl 8
loc 8
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
/*
4
 * The RandomLib library for securely generating random numbers and strings in PHP
5
 *
6
 * @author     Anthony Ferrara <[email protected]>
7
 * @copyright  2011 The Authors
8
 * @license    http://www.opensource.org/licenses/mit-license.html  MIT License
9
 * @version    Build @@version@@
10
 */
11
namespace RandomLib\Source;
12
13
use SecurityLib\Strength;
14
15
class RandTest extends AbstractSourceTest
16
{
17
    protected static function getExpectedStrength()
18
    {
19
        if (defined('S_ALL')) {
20
            return new Strength(Strength::LOW);
21
        } else {
22
            return new Strength(Strength::VERYLOW);
23
        }
24
    }
25
}
26