Documentation

JsonParserTest extends TestCase
in package

Table of Contents

$json  : mixed
provideValidStrings()  : mixed
testDetectsKeyOverrides()  : mixed
testDetectsKeyOverridesWithEmpty()  : mixed
testDuplicateKeys()  : mixed
testDuplicateKeysWithEmpty()  : mixed
testErrorAtBeginning()  : mixed
testErrorOnInvalidQuotes()  : mixed
testErrorOnLongUnescapedBackslash()  : mixed
testErrorOnLongUnescapedBackslash2()  : mixed
testErrorOnMultilineString()  : mixed
testErrorOnTrailingComma()  : mixed
testErrorOnUnescapedBackslash()  : mixed
testErrorOnUnterminatedString()  : mixed
testFileWithBOM()  : mixed
testLongString()  : mixed
testParsesMultiInARow()  : mixed
testParsesValidStrings()  : mixed
testParseToArray()  : mixed

Properties

$json

protected mixed $json = array('42', '42.3', '0.3', '-42', '-42.3', '-0.3', '2e1', '2E1', '-2e1', '-2E1', '2E+2', '2E-2', '-2E+2', '-2E-2', 'true', 'false', 'null', '""', '[]', '{}', '"string"', '["a", "sdfsd"]', '{"foo":"bar", "bar":"baz", "":"buz"}', '{"":"foo", "_empty_":"bar"}', '"\u00c9v\u00e9nement"', '"http:\/\/foo.com"', '"zo\\mg"', '{"test":"\u00c9v\u00e9nement"}', '["\u00c9v\u00e9nement"]', '"foo/bar"', '{"test":"http:\/\/foo\\zomg"}', '["http:\/\/foo\\zomg"]', '{"":"foo"}', '{"a":"b", "b":"c"}', '0', '""', '"\u0022"', '"Argument \u0022input\u0022 has an invalid value: ..."', '"👻"', '"\u1f47d"')

Methods

provideValidStrings()

public provideValidStrings() : mixed
Return values
mixed

testDetectsKeyOverrides()

public testDetectsKeyOverrides() : mixed
Return values
mixed

testDetectsKeyOverridesWithEmpty()

public testDetectsKeyOverridesWithEmpty() : mixed
Return values
mixed

testDuplicateKeys()

public testDuplicateKeys() : mixed
Return values
mixed

testDuplicateKeysWithEmpty()

public testDuplicateKeysWithEmpty() : mixed
Return values
mixed

testErrorAtBeginning()

public testErrorAtBeginning() : mixed
Return values
mixed

testErrorOnInvalidQuotes()

public testErrorOnInvalidQuotes() : mixed
Return values
mixed

testErrorOnLongUnescapedBackslash()

public testErrorOnLongUnescapedBackslash() : mixed
Return values
mixed

testErrorOnLongUnescapedBackslash2()

public testErrorOnLongUnescapedBackslash2() : mixed
Return values
mixed

testErrorOnMultilineString()

public testErrorOnMultilineString() : mixed
Return values
mixed

testErrorOnTrailingComma()

public testErrorOnTrailingComma() : mixed
Return values
mixed

testErrorOnUnescapedBackslash()

public testErrorOnUnescapedBackslash() : mixed
Return values
mixed

testErrorOnUnterminatedString()

public testErrorOnUnterminatedString() : mixed
Return values
mixed

testFileWithBOM()

public testFileWithBOM() : mixed
Return values
mixed

testLongString()

public testLongString() : mixed
Return values
mixed

testParsesMultiInARow()

public testParsesMultiInARow() : mixed
Return values
mixed

testParsesValidStrings()

public testParsesValidStrings(mixed $input) : mixed
Parameters
$input : mixed
Tags
dataProvider

provideValidStrings

Return values
mixed

testParseToArray()

public testParseToArray() : mixed
Return values
mixed

Search results