PHP Class Trianglman\Sqrl\Tests\SqrlValidateTest

Author: johnj
Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: trianglman/sqrl

Protected Properties

Property Type Description
$config
$obj
$storage
$val

Public Methods

Method Description
setup ( )
testChecksNutIPMatch ( )
testChecksNutIPMismatch ( )
testValidatesBadSignature ( )
testValidatesExpiredNut ( )
testValidatesGoodNut ( )
testValidatesGoodNutMatchingKey ( )
testValidatesGoodNutMismatchKey ( )
testValidatesServerFromArray ( )
testValidatesServerFromArrayInvalidQry ( )
testValidatesServerFromArrayInvalidSfn ( )
testValidatesServerFromArrayInvalidTif ( )
testValidatesServerFromArrayInvalidVersion ( )
testValidatesServerFromArrayMissingRequiredFields ( )
testValidatesServerFromArraySecurityDowngrade ( )
testValidatesServerFromUrl ( )
testValidatesServerFromUrlInvalidAuthPath ( )
testValidatesServerFromUrlInvalidDomain ( )
testValidatesServerFromUrlInvalidProtocol ( )
testValidatesServerFromUrlInvalidSecurity ( )
testValidatesServerFromUrlNutDoesntMatch ( )
testValidatesServerFromUrlWithExtendedDomain ( )
testValidatesSignature ( )
testValidatesUnknownNut ( )

Protected Methods

Method Description
base64UrlEncode ( $string )

Method Details

base64UrlEncode() protected method

protected base64UrlEncode ( $string )

setup() public method

public setup ( )

testChecksNutIPMatch() public method

testChecksNutIPMismatch() public method

testValidatesBadSignature() public method

testValidatesExpiredNut() public method

testValidatesGoodNut() public method

testValidatesGoodNutMatchingKey() public method

testValidatesGoodNutMismatchKey() public method

testValidatesServerFromArray() public method

testValidatesServerFromArrayInvalidQry() public method

testValidatesServerFromArrayInvalidSfn() public method

testValidatesServerFromArrayInvalidTif() public method

testValidatesServerFromArrayInvalidVersion() public method

testValidatesServerFromArrayMissingRequiredFields() public method

testValidatesServerFromArraySecurityDowngrade() public method

testValidatesServerFromUrl() public method

testValidatesServerFromUrlInvalidAuthPath() public method

testValidatesServerFromUrlInvalidDomain() public method

testValidatesServerFromUrlInvalidProtocol() public method

testValidatesServerFromUrlInvalidSecurity() public method

testValidatesServerFromUrlNutDoesntMatch() public method

testValidatesServerFromUrlWithExtendedDomain() public method

testValidatesSignature() public method

testValidatesUnknownNut() public method

Property Details

$config protected property

protected $config

$obj protected property

protected $obj

$storage protected property

protected $storage

$val protected property

protected $val