PHP Class Psecio\Jwt\HeaderTest

Inheritance: extends PHPUnit_Framework_TestCase
Afficher le fichier Open project: psecio/jwt

Méthodes publiques

Méthode Description
AlgorithmDataProvider ( ) Data provider for JWT algorithm hash to real hash string
setUp ( )
tearDown ( )
testConvertToString ( ) Test the conversion of the header to a string of JSON
testGetSetAlgorithmNoResolve ( ) Test that the same algorithm string is returned when no resolution is requested
testGetSetAlgorithmResolve ( string $algorithm, string $hashType ) Test that the right hash resolution is returned
testGetSetKey ( ) Test the getter/setter for the key value
testToArray ( ) Test the conversion of the header to an array

Method Details

AlgorithmDataProvider() public méthode

Data provider for JWT algorithm hash to real hash string

setUp() public méthode

public setUp ( )

tearDown() public méthode

public tearDown ( )

testConvertToString() public méthode

Test the conversion of the header to a string of JSON
public testConvertToString ( )

testGetSetAlgorithmNoResolve() public méthode

Test that the same algorithm string is returned when no resolution is requested

testGetSetAlgorithmResolve() public méthode

Test that the right hash resolution is returned
public testGetSetAlgorithmResolve ( string $algorithm, string $hashType )
$algorithm string Algorithm string (from JWT spec)
$hashType string Algorithm the type resolves to

testGetSetKey() public méthode

Test the getter/setter for the key value
public testGetSetKey ( )

testToArray() public méthode

Test the conversion of the header to an array
public testToArray ( )