ParserTest
extends TestCase
in package
Table of Contents
Properties
Methods
- getBinaryData() : mixed
- getBlockChompingTests() : mixed
- getCommentLikeStringInScalarBlockData() : mixed
- getDataFormSpecifications() : mixed
- getInvalidBinaryData() : mixed
- getLegacyNonStringMappingKeysData() : mixed
- getNonStringMappingKeysData() : mixed
- getObjectForMapTests() : mixed
- getParseExceptionOnDuplicateData() : mixed
- invalidDumpedObjectProvider() : mixed
- multiLineDataProvider() : mixed
- parserThrowsExceptionWithCorrectLineNumberProvider() : mixed
- taggedValuesProvider() : mixed
- testAdditionallyIndentedLinesAreParsedAsNewLinesInFoldedBlocks() : mixed
- testBlankLinesAreParsedAsNewLinesInFoldedBlocks() : mixed
- testBlockChomping() : mixed
- testBlockLiteralWithLeadingNewlines() : mixed
- Regression test for issue #7989.
- testBooleanKeys() : mixed
- testCanParseContentWithTrailingSpaces() : mixed
- testCanParseVeryLongValue() : mixed
- testColonInMappingValueException() : mixed
- testColonInMappingValueExceptionNotTriggeredByColonInComment() : mixed
- testCommentAtTheRootIndent() : mixed
- testCommentLikeStringsAreNotStrippedInBlockScalars() : mixed
- testComplexMappingNestedInMappingThrowsParseException() : mixed
- testComplexMappingNestedInSequenceThrowsParseException() : mixed
- testComplexMappingThrowsParseException() : mixed
- testCustomTagsDisabled() : mixed
- testCustomTagSupport() : mixed
- testEmptyValue() : mixed
- testEndOfTheDocumentMarker() : mixed
- testExceptionWhenUsingUnsuportedBuiltInTags() : mixed
- testExplicitStringCastingOfBooleanKeys() : mixed
- testExplicitStringCastingOfFloatKeys() : mixed
- testFloatKeys() : mixed
- testFoldedStringBlockWithComments() : mixed
- testLegacyNonStringMappingKeys() : mixed
- testMappingDuplicateKeyBlock() : mixed
- > It is an error for two equal keys to appear in the same mapping node.
- testMappingDuplicateKeyFlow() : mixed
- testMappingInASequence() : mixed
- testMultipleDocumentsNotSupportedException() : mixed
- testNestedFoldedStringBlockWithComments() : mixed
- testNonStringMappingKeys() : mixed
- testNonUtf8Exception() : mixed
- testObjectForMap() : mixed
- testObjectForMapEnabledWithMappingUsingBooleanToggles() : mixed
- testObjectsSupportDisabledWithExceptions() : mixed
- testObjectsSupportDisabledWithExceptionsUsingBooleanToggles() : mixed
- testObjectSupportDisabledButNoExceptions() : mixed
- testObjectSupportEnabled() : mixed
- testObjectSupportEnabledPassingTrue() : mixed
- testObjectSupportEnabledWithDeprecatedTag() : mixed
- testParseBinaryData() : mixed
- testParseDateAsMappingValue() : mixed
- testParseExceptionOnDuplicate() : mixed
- testParseInvalidBinaryData() : mixed
- testParseMultiLineMappingValue() : mixed
- testParseMultiLineQuotedString() : mixed
- testParseMultiLineString() : mixed
- testParseMultiLineUnquotedString() : mixed
- testParserCleansUpReferencesBetweenRuns() : mixed
- testParserThrowsExceptionWithCorrectLineNumber() : mixed
- testParsingIniThrowsException() : mixed
- testPhpConstantTagMappingKey() : mixed
- testPhpConstantTagMappingKeyWithKeysCastToStrings() : mixed
- testReferenceResolvingInInlineStrings() : mixed
- testScalarInSequence() : mixed
- testSequenceFollowedByCommentEmbeddedInMapping() : mixed
- testSequenceInAMapping() : mixed
- testSequenceInMappingStartedBySingleDashLine() : mixed
- testShortcutKeyUnindentedCollectionException() : mixed
- testSpecifications() : mixed
- testStringBlockWithComments() : mixed
- testTabsInYaml() : mixed
- testTaggedInlineMapping() : mixed
- testUnindentedCollectionException() : mixed
- testUnsupportedTagWithScalar() : mixed
- testYamlDirective() : mixed
- setUp() : mixed
- tearDown() : mixed
- loadTestsFromFixtureFiles() : mixed
Properties
$parser
protected
Parser
$parser
Methods
getBinaryData()
public
getBinaryData() : mixed
getBlockChompingTests()
public
getBlockChompingTests() : mixed
getCommentLikeStringInScalarBlockData()
public
getCommentLikeStringInScalarBlockData() : mixed
getDataFormSpecifications()
public
getDataFormSpecifications() : mixed
getInvalidBinaryData()
public
getInvalidBinaryData() : mixed
getLegacyNonStringMappingKeysData()
public
getLegacyNonStringMappingKeysData() : mixed
getNonStringMappingKeysData()
public
getNonStringMappingKeysData() : mixed
getObjectForMapTests()
public
getObjectForMapTests() : mixed
getParseExceptionOnDuplicateData()
public
getParseExceptionOnDuplicateData() : mixed
invalidDumpedObjectProvider()
public
invalidDumpedObjectProvider() : mixed
multiLineDataProvider()
public
multiLineDataProvider() : mixed
parserThrowsExceptionWithCorrectLineNumberProvider()
public
parserThrowsExceptionWithCorrectLineNumberProvider() : mixed
taggedValuesProvider()
public
taggedValuesProvider() : mixed
testAdditionallyIndentedLinesAreParsedAsNewLinesInFoldedBlocks()
public
testAdditionallyIndentedLinesAreParsedAsNewLinesInFoldedBlocks() : mixed
testBlankLinesAreParsedAsNewLinesInFoldedBlocks()
public
testBlankLinesAreParsedAsNewLinesInFoldedBlocks() : mixed
testBlockChomping()
public
testBlockChomping(mixed $expected, mixed $yaml) : mixed
Parameters
- $expected : mixed
- $yaml : mixed
Tags
testBlockLiteralWithLeadingNewlines()
Regression test for issue #7989.
public
testBlockLiteralWithLeadingNewlines() : mixed
Tags
testBooleanKeys()
public
testBooleanKeys() : mixed
Tags
testCanParseContentWithTrailingSpaces()
public
testCanParseContentWithTrailingSpaces() : mixed
testCanParseVeryLongValue()
public
testCanParseVeryLongValue() : mixed
testColonInMappingValueException()
public
testColonInMappingValueException() : mixed
Tags
testColonInMappingValueExceptionNotTriggeredByColonInComment()
public
testColonInMappingValueExceptionNotTriggeredByColonInComment() : mixed
testCommentAtTheRootIndent()
public
testCommentAtTheRootIndent() : mixed
testCommentLikeStringsAreNotStrippedInBlockScalars()
public
testCommentLikeStringsAreNotStrippedInBlockScalars(mixed $yaml, mixed $expectedParserResult) : mixed
Parameters
- $yaml : mixed
- $expectedParserResult : mixed
Tags
testComplexMappingNestedInMappingThrowsParseException()
public
testComplexMappingNestedInMappingThrowsParseException() : mixed
Tags
testComplexMappingNestedInSequenceThrowsParseException()
public
testComplexMappingNestedInSequenceThrowsParseException() : mixed
Tags
testComplexMappingThrowsParseException()
public
testComplexMappingThrowsParseException() : mixed
Tags
testCustomTagsDisabled()
public
testCustomTagsDisabled() : mixed
Tags
testCustomTagSupport()
public
testCustomTagSupport(mixed $expected, mixed $yaml) : mixed
Parameters
- $expected : mixed
- $yaml : mixed
Tags
testEmptyValue()
public
testEmptyValue() : mixed
testEndOfTheDocumentMarker()
public
testEndOfTheDocumentMarker() : mixed
testExceptionWhenUsingUnsuportedBuiltInTags()
public
testExceptionWhenUsingUnsuportedBuiltInTags() : mixed
Tags
testExplicitStringCastingOfBooleanKeys()
public
testExplicitStringCastingOfBooleanKeys() : mixed
testExplicitStringCastingOfFloatKeys()
public
testExplicitStringCastingOfFloatKeys() : mixed
testFloatKeys()
public
testFloatKeys() : mixed
Tags
testFoldedStringBlockWithComments()
public
testFoldedStringBlockWithComments() : mixed
testLegacyNonStringMappingKeys()
public
testLegacyNonStringMappingKeys(mixed $expected, mixed $yaml, mixed $comment) : mixed
Parameters
- $expected : mixed
- $yaml : mixed
- $comment : mixed
Tags
testMappingDuplicateKeyBlock()
> It is an error for two equal keys to appear in the same mapping node.
public
testMappingDuplicateKeyBlock() : mixed
In such a case the YAML processor may continue, ignoring the second
key: value
pair and issuing an appropriate warning. This strategy preserves a consistent information model for one-pass and random access applications.
Tags
testMappingDuplicateKeyFlow()
public
testMappingDuplicateKeyFlow() : mixed
Tags
testMappingInASequence()
public
testMappingInASequence() : mixed
Tags
testMultipleDocumentsNotSupportedException()
public
testMultipleDocumentsNotSupportedException() : mixed
Tags
testNestedFoldedStringBlockWithComments()
public
testNestedFoldedStringBlockWithComments() : mixed
testNonStringMappingKeys()
public
testNonStringMappingKeys(mixed $expected, mixed $yaml, mixed $comment) : mixed
Parameters
- $expected : mixed
- $yaml : mixed
- $comment : mixed
Tags
testNonUtf8Exception()
public
testNonUtf8Exception() : mixed
Tags
testObjectForMap()
public
testObjectForMap(mixed $yaml, mixed $expected[, mixed $explicitlyParseKeysAsStrings = false ]) : mixed
Parameters
- $yaml : mixed
- $expected : mixed
- $explicitlyParseKeysAsStrings : mixed = false
Tags
testObjectForMapEnabledWithMappingUsingBooleanToggles()
public
testObjectForMapEnabledWithMappingUsingBooleanToggles(mixed $yaml, mixed $expected) : mixed
Parameters
- $yaml : mixed
- $expected : mixed
Tags
testObjectsSupportDisabledWithExceptions()
public
testObjectsSupportDisabledWithExceptions(mixed $yaml) : mixed
Parameters
- $yaml : mixed
Tags
testObjectsSupportDisabledWithExceptionsUsingBooleanToggles()
public
testObjectsSupportDisabledWithExceptionsUsingBooleanToggles(mixed $yaml) : mixed
Parameters
- $yaml : mixed
Tags
testObjectSupportDisabledButNoExceptions()
public
testObjectSupportDisabledButNoExceptions(mixed $input) : mixed
Parameters
- $input : mixed
Tags
testObjectSupportEnabled()
public
testObjectSupportEnabled() : mixed
testObjectSupportEnabledPassingTrue()
public
testObjectSupportEnabledPassingTrue() : mixed
Tags
testObjectSupportEnabledWithDeprecatedTag()
public
testObjectSupportEnabledWithDeprecatedTag() : mixed
Tags
testParseBinaryData()
public
testParseBinaryData(mixed $data) : mixed
Parameters
- $data : mixed
Tags
testParseDateAsMappingValue()
public
testParseDateAsMappingValue() : mixed
testParseExceptionOnDuplicate()
public
testParseExceptionOnDuplicate(mixed $input, mixed $duplicateKey, mixed $lineNumber) : mixed
Parameters
- $input : mixed
- $duplicateKey : mixed
- $lineNumber : mixed
Tags
testParseInvalidBinaryData()
public
testParseInvalidBinaryData(mixed $data, mixed $expectedMessage) : mixed
Parameters
- $data : mixed
- $expectedMessage : mixed
Tags
testParseMultiLineMappingValue()
public
testParseMultiLineMappingValue(mixed $yaml, mixed $expected, mixed $parseError) : mixed
Parameters
- $yaml : mixed
- $expected : mixed
- $parseError : mixed
Tags
testParseMultiLineQuotedString()
public
testParseMultiLineQuotedString() : mixed
testParseMultiLineString()
public
testParseMultiLineString() : mixed
testParseMultiLineUnquotedString()
public
testParseMultiLineUnquotedString() : mixed
testParserCleansUpReferencesBetweenRuns()
public
testParserCleansUpReferencesBetweenRuns() : mixed
Tags
testParserThrowsExceptionWithCorrectLineNumber()
public
testParserThrowsExceptionWithCorrectLineNumber(mixed $lineNumber, mixed $yaml) : mixed
Parameters
- $lineNumber : mixed
- $yaml : mixed
Tags
testParsingIniThrowsException()
public
testParsingIniThrowsException() : mixed
Tags
testPhpConstantTagMappingKey()
public
testPhpConstantTagMappingKey() : mixed
testPhpConstantTagMappingKeyWithKeysCastToStrings()
public
testPhpConstantTagMappingKeyWithKeysCastToStrings() : mixed
testReferenceResolvingInInlineStrings()
public
testReferenceResolvingInInlineStrings() : mixed
testScalarInSequence()
public
testScalarInSequence() : mixed
Tags
testSequenceFollowedByCommentEmbeddedInMapping()
public
testSequenceFollowedByCommentEmbeddedInMapping() : mixed
testSequenceInAMapping()
public
testSequenceInAMapping() : mixed
Tags
testSequenceInMappingStartedBySingleDashLine()
public
testSequenceInMappingStartedBySingleDashLine() : mixed
testShortcutKeyUnindentedCollectionException()
public
testShortcutKeyUnindentedCollectionException() : mixed
Tags
testSpecifications()
public
testSpecifications(mixed $expected, mixed $yaml, mixed $comment, mixed $deprecated) : mixed
Parameters
- $expected : mixed
- $yaml : mixed
- $comment : mixed
- $deprecated : mixed
Tags
testStringBlockWithComments()
public
testStringBlockWithComments() : mixed
testTabsInYaml()
public
testTabsInYaml() : mixed
testTaggedInlineMapping()
public
testTaggedInlineMapping() : mixed
testUnindentedCollectionException()
public
testUnindentedCollectionException() : mixed
Tags
testUnsupportedTagWithScalar()
public
testUnsupportedTagWithScalar() : mixed
Tags
testYamlDirective()
public
testYamlDirective() : mixed
setUp()
protected
setUp() : mixed
tearDown()
protected
tearDown() : mixed
loadTestsFromFixtureFiles()
private
loadTestsFromFixtureFiles(mixed $testsFile) : mixed
Parameters
- $testsFile : mixed