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

BlacklistTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 12
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Tests\CustomerGauge\Password\Rule;
4
5
use PHPUnit\Framework\TestCase;
6
use CustomerGauge\Password\Rule\Blacklist;
7
use CustomerGauge\Password\Exception\InvalidPassword;
8
9
class BlacklistTest extends TestCase
10
{
11
    public function test_it_can_validate_a_blacklist()
12
    {
13
        self::expectException(InvalidPassword::class);
14
15
        $password  = 'blackliststring';
16
        $blacklist = new Blacklist([$password]); 
17
18
        $blacklist($password);
19
    }
20
}
21