PHP Класс Psecio\Jwt\HeaderTest

Наследование: extends PHPUnit_Framework_TestCase
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

AlgorithmDataProvider() публичный Метод

Data provider for JWT algorithm hash to real hash string

setUp() публичный Метод

public setUp ( )

tearDown() публичный Метод

public tearDown ( )

testConvertToString() публичный Метод

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

testGetSetAlgorithmNoResolve() публичный Метод

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

testGetSetAlgorithmResolve() публичный Метод

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() публичный Метод

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

testToArray() публичный Метод

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