SentEmailTest::testGetNewToken()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 2
eloc 5
c 1
b 0
f 1
nc 2
nop 0
dl 0
loc 7
rs 10
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