SentEmailTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 6
c 1
b 0
f 1
dl 0
loc 9
rs 10
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A testGetNewToken() 0 7 2
1
<?php
2
3
namespace Azine\EmailBundle\Tests\Entity;
4
5
use Azine\EmailBundle\Entity\SentEmail;
6
7
class SentEmailTest extends \PHPUnit\Framework\TestCase
8
{
9
    public function testGetNewToken()
10
    {
11
        $tockens = array();
12
        while (sizeof($tockens) < 100) {
13
            $newToken = SentEmail::getNewToken();
14
            $this->assertNotContains($newToken, $tockens);
15
            $tockens[] = $newToken;
16
        }
17
    }
18
}
19