/** * Constructor. * * @param string $role The role as a string * @param TokenInterface $source The original token */ public function __construct($role, TokenInterface $source) { parent::__construct($role); $this->source = $source; }
public function testGetRole() { $role = new Role('FOO'); $this->assertEquals('FOO', $role->getRole()); }