Completed
Push — master ( 8f8ed1...dca6d3 )
by Shcherbak
01:55
created

RandomStringTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 3
dl 0
loc 13
ccs 7
cts 7
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testValue() 0 10 1
1
<?php
2
3
namespace Funivan\CabbageCore\String\StringObject\Random;
4
5
use Funivan\CabbageCore\String\StringList\PredefinedStringList;
6
use PHPUnit\Framework\TestCase;
7
8
class RandomStringTest extends TestCase
9
{
10 1
    public function testValue()
11
    {
12 1
        self::assertTrue(
13 1
            in_array(
14 1
                (new RandomString((new PredefinedStringList('name', 'id'))))->value(),
15 1
                ['name', 'id'],
16 1
                true
17
            )
18
        );
19 1
    }
20
}
21