It's used when working with multiple user providers It has two properties: - wrappedUser: containing the originally matched user. - apiUser: containing the API User (the one from the eZ Repository )
Inheritance: implements eZ\Publish\Core\MVC\Symfony\Security\UserInterface, implements Symfony\Component\Security\Core\User\EquatableInterface
 public function testIsEqualTo()
 {
     $originalUser = $this->getMock('eZ\\Publish\\Core\\MVC\\Symfony\\Security\\User');
     $user = new UserWrapped($originalUser, $this->apiUser);
     $otherUser = $this->getMock('Symfony\\Component\\Security\\Core\\User\\UserInterface');
     $originalUser->expects($this->once())->method('isEqualTo')->with($otherUser)->will($this->returnValue(false));
     $this->assertFalse($user->isEqualTo($otherUser));
 }