Completed
Push — master ( bcf360...98d48e )
by Abdala
03:37
created

GeneratorTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 11
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Tests\CustomerGauge\Password;
4
5
use PHPUnit\Framework\TestCase;
6
use CustomerGauge\Password\RuleChain;
7
use CustomerGauge\Password\Generator;
8
9
class GeneratorTest extends TestCase
10
{
11
    public function test_it_can_generate_valid_passwords_based_on_rules()
12
    {
13
        $rules = new RuleChain(function(){}); 
14
        
15
        $passwordGenerator = new Generator($rules);
16
17
        self::assertIsString($passwordGenerator());
18
    }
19
}
20