AuthenticationManagerTest::testCase()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

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