PHP 클래스 Psecio\Jwt\HeaderTest

상속: extends PHPUnit_Framework_TestCase
파일 보기 프로젝트 열기: psecio/jwt

공개 메소드들

메소드 설명
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 ( )