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

MTRandTest::testGenerate()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 5

Duplication

Lines 6
Ratio 100 %

Importance

Changes 0
Metric Value
cc 1
eloc 5
nc 1
nop 2
dl 6
loc 6
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 MTRandTest extends AbstractSourceTest
16
{
17
    protected static function getExpectedStrength()
18
    {
19
        if (defined('S_ALL')) {
20
            return new Strength(Strength::MEDIUM);
21
        } else {
22
            return new Strength(Strength::LOW);
23
        }
24
    }
25
}
26