use PHPUnit\Framework\TestCase;
use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken;
use Symfony\Component\Security\Core\Exception\CustomUserMessageAuthenticationException;
use Symfony\Component\Security\Core\User\InMemoryUser;
class ChildCustomUserMessageAuthenticationException extends CustomUserMessageAuthenticationException
{ public $childMember;
public function __serialize(): array
{ return [$this->childMember, parent::
__serialize()];
} public function __unserialize(array
$data): void
{ [$this->childMember,
$parentData] =
$data;
parent::
__unserialize($parentData);
}}class CustomUserMessageAuthenticationExceptionTest extends TestCase
{