PHP Class Kraken\_Unit\Util\Parser\Json\JsonParserTest

Inheritance: extends Kraken\Test\TUnit
Afficher le fichier Open project: kraken-php/framework

Méthodes publiques

Méthode Description
parsersProvider ( ) : Kraken\Util\Parser\ParserInterface[]
testApiDecode_DecodesJsonToArray_ForDecodeObjectFlag ( )
testApiEncode_EncodesArrayToJson_ForDefaultDecoder ( Kraken\Util\Parser\ParserInterface $parser )
testApiEncode_EncodesObjectToJson_ForDefaultDecoder ( Kraken\Util\Parser\ParserInterface $parser )
testApiGetSupported_ReturnsSupportedConstants ( )
testApiIsSupported_ReturnsTrue_ForExistingConstants ( )

Méthodes protégées

Méthode Description
createParser ( integer $flags = JsonParser::DECODE_DEFAULT ) : JsonParser
getArray ( ) : mixed[]
getObject ( ) : StdClass
getString ( ) : string

Method Details

createParser() protected méthode

protected createParser ( integer $flags = JsonParser::DECODE_DEFAULT ) : JsonParser
$flags integer
Résultat Kraken\Util\Parser\Json\JsonParser

getArray() protected méthode

protected getArray ( ) : mixed[]
Résultat mixed[]

getObject() protected méthode

protected getObject ( ) : StdClass
Résultat StdClass

getString() protected méthode

protected getString ( ) : string
Résultat string

parsersProvider() public méthode

public parsersProvider ( ) : Kraken\Util\Parser\ParserInterface[]
Résultat Kraken\Util\Parser\ParserInterface[]

testApiDecode_DecodesJsonToArray_ForDecodeObjectFlag() public méthode

testApiEncode_EncodesArrayToJson_ForDefaultDecoder() public méthode

public testApiEncode_EncodesArrayToJson_ForDefaultDecoder ( Kraken\Util\Parser\ParserInterface $parser )
$parser Kraken\Util\Parser\ParserInterface

testApiEncode_EncodesObjectToJson_ForDefaultDecoder() public méthode

public testApiEncode_EncodesObjectToJson_ForDefaultDecoder ( Kraken\Util\Parser\ParserInterface $parser )
$parser Kraken\Util\Parser\ParserInterface

testApiGetSupported_ReturnsSupportedConstants() public méthode

testApiIsSupported_ReturnsTrue_ForExistingConstants() public méthode