CodeExplorer assertMatchingTokenIsValidWithLegacyToken example
->
method('getToken'
) ->
with($namespace.'token_id'
) ->
willReturn('TOKEN'
);
$token =
$manager->
getToken('token_id'
);
$this->
assertNotSame('TOKEN',
$token->
getValue());
$this->
assertTrue($manager->
isTokenValid($token));
} public function testMatchingTokenIsValidWithLegacyTokenEmptyNamespace() { $this->
assertMatchingTokenIsValidWithLegacyToken(...
$this->
getEmptyNamespaceMocks());
} public function testMatchingTokenIsValidWithLegacyTokenHttpsNamespace() { $this->
assertMatchingTokenIsValidWithLegacyToken(...
$this->
getHttpsNamespaceMocks());
} public function testMatchingTokenIsValidWithLegacyTokenCustomNamespace() { $this->
assertMatchingTokenIsValidWithLegacyToken(...
$this->
getCustomNamespaceMocks());
}