Completed
Push — master ( d5c6c4...a11ecc )
by Michael
10s
created

MTRandTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
dl 0
loc 11
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A getExpectedStrength() 0 8 2
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