for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Symplify\SymfonySecurity\Tests\Core\Authentication;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
use Symplify\SymfonySecurity\Core\Authentication\AuthenticationManager;
final class AuthenticationManagerTest extends TestCase
{
public function testCase()
$tokenMock = $this->prophesize(TokenInterface::class);
$authenticationManager = new AuthenticationManager();
$resolvedToken = $authenticationManager->authenticate($tokenMock->reveal());
$this->assertSame($resolvedToken, $tokenMock->reveal());
}