AuthenticationManagerTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 3
dl 0
loc 11
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testCase() 0 8 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Symplify\SymfonySecurity\Tests\Core\Authentication;
6
7
use PHPUnit\Framework\TestCase;
8
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
9
use Symplify\SymfonySecurity\Core\Authentication\AuthenticationManager;
10
11
final class AuthenticationManagerTest extends TestCase
12
{
13
    public function testCase()
14
    {
15
        $tokenMock = $this->prophesize(TokenInterface::class);
16
        $authenticationManager = new AuthenticationManager();
17
18
        $resolvedToken = $authenticationManager->authenticate($tokenMock->reveal());
19
        $this->assertSame($resolvedToken, $tokenMock->reveal());
20
    }
21
}
22