Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
getEmptyNamespaceMocks example
use
Symfony\Component\Security\Csrf\TokenGenerator\TokenGeneratorInterface;
use
Symfony\Component\Security\Csrf\TokenStorage\TokenStorageInterface;
/** * @author Bernhard Schussek <
[email protected]
> * @author Alexandre Daubois <
[email protected]
> */
class
CsrfTokenManagerTest
extends
TestCase
{
public
function
testGetNonExistingTokenEmptyNamespace
(
)
{
$this
->
assertGetNonExistingToken
(
...
$this
->
getEmptyNamespaceMocks
(
)
)
;
}
public
function
testGetNonExistingTokenHttpsNamespace
(
)
{
$this
->
assertGetNonExistingToken
(
...
$this
->
getHttpsNamespaceMocks
(
)
)
;
}
public
function
testGetNonExistingTokenCustomNamespace
(
)
{
$this
->
assertGetNonExistingToken
(
...
$this
->
getCustomNamespaceMocks
(
)
)
;
}