Completed
Push — master ( 2bc6ba...1ab902 )
by Francesco
09:17
created

testGenerateRandomSecretGeneratesRandomString()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
/*
4
 * This file is part of the MesCryptoBundle package.
5
 *
6
 * (c) Francesco Cartenì <http://www.multimediaexperiencestudio.it/>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
use Mes\Security\CryptoBundle\Utils\SecretGenerator;
13
14
/**
15
 * Class SecretGeneratorTest.
16
 */
17
class SecretGeneratorTest extends \PHPUnit_Framework_TestCase
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
18
{
19
    public function testGenerateRandomSecretGeneratesRandomString()
20
    {
21
        $this->assertTrue(ctype_print((new SecretGenerator())->generateRandomSecret()), 'is printable');
22
    }
23
}
24