Documentation

InlineTest extends TestCase
in package

Table of Contents

getBinaryData()  : mixed
getDataForIsHash()  : mixed
getDataForParseReferences()  : mixed
getDateTimeDumpTests()  : mixed
getInvalidBinaryData()  : mixed
getNotPhpCompatibleMappingKeyData()  : mixed
getReservedIndicators()  : mixed
getScalarIndicators()  : mixed
getTestsForDump()  : mixed
getTestsForNullValues()  : mixed
getTestsForOctalNumbers()  : mixed
getTestsForParse()  : mixed
getTestsForParseLegacyPhpConstants()  : mixed
getTestsForParsePhpConstants()  : mixed
getTestsForParseWithMapObjects()  : mixed
getTimestampTests()  : mixed
phpConstTagWithEmptyValueProvider()  : mixed
phpObjectTagWithEmptyValueProvider()  : mixed
testDeprecatedConstantTag()  : mixed
testDeprecatedStrTag()  : mixed
testDump()  : mixed
testDumpDateTime()  : mixed
testDumpNumericValueWithLocale()  : mixed
testExplicitStringCastingOfMappingKeys()  : mixed
testHashStringsResemblingExponentialNumericsShouldNotBeChangedToINF()  : mixed
testImplicitStringCastingOfMappingKeysIsDeprecated()  : mixed
testIsHash()  : mixed
testNotSupportedMissingValue()  : mixed
testOmittedMappingKeyIsParsedAsColon()  : mixed
testParse()  : mixed
testParseBinaryData()  : mixed
testParseCommentNotPrefixedBySpaces()  : mixed
testParseInvalidBinaryData()  : mixed
testParseInvalidMappingKeyShouldThrowException()  : mixed
testParseInvalidMappingShouldThrowException()  : mixed
testParseInvalidSequenceShouldThrowException()  : mixed
testParseInvalidTaggedSequenceShouldThrowException()  : mixed
testParseMappingKeyWithColonNotFollowedBySpace()  : mixed
testParseMapReferenceInSequence()  : mixed
testParseMapReferenceInSequenceAsFifthArgument()  : mixed
testParseMissingMappingValueAsNull()  : mixed
testParseNegativeOctalNumberContainingInvalidDigits()  : mixed
testParseNestedTimestampListAsDateTimeObject()  : mixed
testParseOctalNumbers()  : mixed
testParsePhpConstants()  : mixed
testParsePhpConstantThrowsExceptionOnInvalidType()  : mixed
testParsePhpConstantThrowsExceptionWhenUndefined()  : mixed
testParsePositiveOctalNumberContainingInvalidDigits()  : mixed
testParseReferences()  : mixed
testParseReferencesAsFifthArgument()  : mixed
testParseScalarWithCorrectlyQuotedStringShouldReturnString()  : mixed
testParseScalarWithIncorrectlyDoubleQuotedStringShouldThrowException()  : mixed
testParseScalarWithIncorrectlyQuotedStringShouldThrowException()  : mixed
testParseScalarWithNonEscapedBlackslashAtTheEndShouldThrowException()  : mixed
testParseScalarWithNonEscapedBlackslashShouldThrowException()  : mixed
testParseTimestampAsDateTimeObject()  : mixed
testParseTimestampAsUnixTimestampByDefault()  : mixed
testParseUnquotedAsterisk()  : mixed
testParseUnquotedAsteriskFollowedByAComment()  : mixed
testParseUnquotedScalarStartingWithPercentCharacter()  : mixed
testParseUnquotedScalarStartingWithReservedIndicator()  : mixed
testParseUnquotedScalarStartingWithScalarIndicator()  : mixed
testParseUnquotedStringContainingHashTagNotPrefixedBySpace()  : mixed
testParseWithMapObjects()  : mixed
testParseWithMapObjectsPassingTrue()  : mixed
testPhpConstTagWithEmptyValue()  : mixed
testPhpObjectWithEmptyValue()  : mixed
testTheEmptyStringIsAValidMappingKey()  : mixed
testUnfinishedInlineMap()  : mixed
testVeryLongQuotedStrings()  : mixed
setUp()  : mixed

Methods

getBinaryData()

public getBinaryData() : mixed
Return values
mixed —

getDataForIsHash()

public getDataForIsHash() : mixed
Return values
mixed —

getDataForParseReferences()

public getDataForParseReferences() : mixed
Return values
mixed —

getDateTimeDumpTests()

public getDateTimeDumpTests() : mixed
Return values
mixed —

getInvalidBinaryData()

public getInvalidBinaryData() : mixed
Return values
mixed —

getNotPhpCompatibleMappingKeyData()

public getNotPhpCompatibleMappingKeyData() : mixed
Return values
mixed —

getReservedIndicators()

public getReservedIndicators() : mixed
Return values
mixed —

getScalarIndicators()

public getScalarIndicators() : mixed
Return values
mixed —

getTestsForDump()

public getTestsForDump() : mixed
Return values
mixed —

getTestsForNullValues()

public getTestsForNullValues() : mixed
Return values
mixed —

getTestsForOctalNumbers()

public getTestsForOctalNumbers() : mixed
Return values
mixed —

getTestsForParse()

public getTestsForParse() : mixed
Return values
mixed —

getTestsForParseLegacyPhpConstants()

public getTestsForParseLegacyPhpConstants() : mixed
Return values
mixed —

getTestsForParsePhpConstants()

public getTestsForParsePhpConstants() : mixed
Return values
mixed —

getTestsForParseWithMapObjects()

public getTestsForParseWithMapObjects() : mixed
Return values
mixed —

getTimestampTests()

public getTimestampTests() : mixed
Return values
mixed —

phpConstTagWithEmptyValueProvider()

public phpConstTagWithEmptyValueProvider() : mixed
Return values
mixed —

phpObjectTagWithEmptyValueProvider()

public phpObjectTagWithEmptyValueProvider() : mixed
Return values
mixed —

testDeprecatedConstantTag()

public testDeprecatedConstantTag(mixed $yaml, mixed $expectedValue) : mixed
Parameters
$yaml : mixed
$expectedValue : mixed
Tags
group

legacy

expectedDeprecation

The !php/const: tag to indicate dumped PHP constants is deprecated since Symfony 3.4 and will be removed in 4.0. Use the !php/const (without the colon) tag instead on line 1.

dataProvider

getTestsForParseLegacyPhpConstants

Return values
mixed —

testDeprecatedStrTag()

public testDeprecatedStrTag() : mixed
Tags
group

legacy

expectedDeprecation

Support for the !str tag is deprecated since Symfony 3.4. Use the !!str tag instead on line 1.

Return values
mixed —

testDump()

public testDump(mixed $yaml, mixed $value, mixed $parseFlags) : mixed
Parameters
$yaml : mixed
$value : mixed
$parseFlags : mixed
Tags
dataProvider

getTestsForDump

Return values
mixed —

testDumpDateTime()

public testDumpDateTime(mixed $dateTime, mixed $expected) : mixed
Parameters
$dateTime : mixed
$expected : mixed
Tags
dataProvider

getDateTimeDumpTests

Return values
mixed —

testDumpNumericValueWithLocale()

public testDumpNumericValueWithLocale() : mixed
Return values
mixed —

testExplicitStringCastingOfMappingKeys()

public testExplicitStringCastingOfMappingKeys(mixed $yaml, mixed $expected) : mixed
Parameters
$yaml : mixed
$expected : mixed
Tags
group

legacy

expectedDeprecation

Using the Yaml::PARSE_KEYS_AS_STRINGS flag is deprecated since Symfony 3.4 as it will be removed in 4.0. Quote your keys when they are evaluable instead.

expectedDeprecation

Implicit casting of incompatible mapping keys to strings is deprecated since Symfony 3.3 and will throw \Symfony\Component\Yaml\Exception\ParseException in 4.0. Quote your evaluable mapping keys instead on line 1.

dataProvider

getNotPhpCompatibleMappingKeyData

Return values
mixed —

testHashStringsResemblingExponentialNumericsShouldNotBeChangedToINF()

public testHashStringsResemblingExponentialNumericsShouldNotBeChangedToINF() : mixed
Return values
mixed —

testImplicitStringCastingOfMappingKeysIsDeprecated()

public testImplicitStringCastingOfMappingKeysIsDeprecated(mixed $yaml, mixed $expected) : mixed
Parameters
$yaml : mixed
$expected : mixed
Tags
group

legacy

expectedDeprecation

Implicit casting of incompatible mapping keys to strings is deprecated since Symfony 3.3 and will throw \Symfony\Component\Yaml\Exception\ParseException in 4.0. Quote your evaluable mapping keys instead on line 1.

dataProvider

getNotPhpCompatibleMappingKeyData

Return values
mixed —

testIsHash()

public testIsHash(mixed $array, mixed $expected) : mixed
Parameters
$array : mixed
$expected : mixed
Tags
dataProvider

getDataForIsHash

Return values
mixed —

testNotSupportedMissingValue()

public testNotSupportedMissingValue() : mixed
Return values
mixed —

testOmittedMappingKeyIsParsedAsColon()

public testOmittedMappingKeyIsParsedAsColon() : mixed
Tags
group

legacy

expectedDeprecation

Omitting the key of a mapping is deprecated and will throw a ParseException in 4.0 on line 1.

Return values
mixed —

testParse()

public testParse(mixed $yaml, mixed $value, mixed $flags) : mixed
Parameters
$yaml : mixed
$value : mixed
$flags : mixed
Tags
dataProvider

getTestsForParse

Return values
mixed —

testParseBinaryData()

public testParseBinaryData(mixed $data) : mixed
Parameters
$data : mixed
Tags
dataProvider

getBinaryData

Return values
mixed —

testParseCommentNotPrefixedBySpaces()

public testParseCommentNotPrefixedBySpaces() : mixed
Return values
mixed —

testParseInvalidBinaryData()

public testParseInvalidBinaryData(mixed $data, mixed $expectedMessage) : mixed
Parameters
$data : mixed
$expectedMessage : mixed
Tags
dataProvider

getInvalidBinaryData

Return values
mixed —

testParseInvalidMappingKeyShouldThrowException()

public testParseInvalidMappingKeyShouldThrowException() : mixed
Return values
mixed —

testParseInvalidMappingShouldThrowException()

public testParseInvalidMappingShouldThrowException() : mixed
Return values
mixed —

testParseInvalidSequenceShouldThrowException()

public testParseInvalidSequenceShouldThrowException() : mixed
Return values
mixed —

testParseInvalidTaggedSequenceShouldThrowException()

public testParseInvalidTaggedSequenceShouldThrowException() : mixed
Return values
mixed —

testParseMappingKeyWithColonNotFollowedBySpace()

public testParseMappingKeyWithColonNotFollowedBySpace() : mixed
Tags
group

legacy

expectedDeprecation

Using a colon after an unquoted mapping key that is not followed by an indication character (i.e. " ", ",", "[", "]", "{", "}") is deprecated since Symfony 3.2 and will throw a ParseException in 4.0 on line 1. throws \Symfony\Component\Yaml\Exception\ParseException in 4.0

Return values
mixed —

testParseMapReferenceInSequence()

public testParseMapReferenceInSequence() : mixed
Return values
mixed —

testParseMapReferenceInSequenceAsFifthArgument()

public testParseMapReferenceInSequenceAsFifthArgument() : mixed
Tags
group

legacy

Return values
mixed —

testParseMissingMappingValueAsNull()

public testParseMissingMappingValueAsNull(mixed $yaml, mixed $expected) : mixed
Parameters
$yaml : mixed
$expected : mixed
Tags
dataProvider

getTestsForNullValues

Return values
mixed —

testParseNegativeOctalNumberContainingInvalidDigits()

public testParseNegativeOctalNumberContainingInvalidDigits() : mixed
Return values
mixed —

testParseNestedTimestampListAsDateTimeObject()

public testParseNestedTimestampListAsDateTimeObject(mixed $yaml, mixed $year, mixed $month, mixed $day, mixed $hour, mixed $minute, mixed $second) : mixed
Parameters
$yaml : mixed
$year : mixed
$month : mixed
$day : mixed
$hour : mixed
$minute : mixed
$second : mixed
Tags
dataProvider

getTimestampTests

Return values
mixed —

testParseOctalNumbers()

public testParseOctalNumbers(mixed $expected, mixed $yaml) : mixed
Parameters
$expected : mixed
$yaml : mixed
Tags
dataProvider

getTestsForOctalNumbers

Return values
mixed —

testParsePhpConstants()

public testParsePhpConstants(mixed $yaml, mixed $value) : mixed
Parameters
$yaml : mixed
$value : mixed
Tags
dataProvider

getTestsForParsePhpConstants

Return values
mixed —

testParsePhpConstantThrowsExceptionOnInvalidType()

public testParsePhpConstantThrowsExceptionOnInvalidType() : mixed
Return values
mixed —

testParsePhpConstantThrowsExceptionWhenUndefined()

public testParsePhpConstantThrowsExceptionWhenUndefined() : mixed
Return values
mixed —

testParsePositiveOctalNumberContainingInvalidDigits()

public testParsePositiveOctalNumberContainingInvalidDigits() : mixed
Return values
mixed —

testParseReferences()

public testParseReferences(mixed $yaml, mixed $expected) : mixed
Parameters
$yaml : mixed
$expected : mixed
Tags
dataProvider

getDataForParseReferences

Return values
mixed —

testParseReferencesAsFifthArgument()

public testParseReferencesAsFifthArgument(mixed $yaml, mixed $expected) : mixed
Parameters
$yaml : mixed
$expected : mixed
Tags
group

legacy

dataProvider

getDataForParseReferences

Return values
mixed —

testParseScalarWithCorrectlyQuotedStringShouldReturnString()

public testParseScalarWithCorrectlyQuotedStringShouldReturnString() : mixed
Return values
mixed —

testParseScalarWithIncorrectlyDoubleQuotedStringShouldThrowException()

public testParseScalarWithIncorrectlyDoubleQuotedStringShouldThrowException() : mixed
Return values
mixed —

testParseScalarWithIncorrectlyQuotedStringShouldThrowException()

public testParseScalarWithIncorrectlyQuotedStringShouldThrowException() : mixed
Return values
mixed —

testParseScalarWithNonEscapedBlackslashAtTheEndShouldThrowException()

public testParseScalarWithNonEscapedBlackslashAtTheEndShouldThrowException() : mixed
Return values
mixed —

testParseScalarWithNonEscapedBlackslashShouldThrowException()

public testParseScalarWithNonEscapedBlackslashShouldThrowException() : mixed
Return values
mixed —

testParseTimestampAsDateTimeObject()

public testParseTimestampAsDateTimeObject(mixed $yaml, mixed $year, mixed $month, mixed $day, mixed $hour, mixed $minute, mixed $second, mixed $timezone) : mixed
Parameters
$yaml : mixed
$year : mixed
$month : mixed
$day : mixed
$hour : mixed
$minute : mixed
$second : mixed
$timezone : mixed
Tags
dataProvider

getTimestampTests

Return values
mixed —

testParseTimestampAsUnixTimestampByDefault()

public testParseTimestampAsUnixTimestampByDefault(mixed $yaml, mixed $year, mixed $month, mixed $day, mixed $hour, mixed $minute, mixed $second) : mixed
Parameters
$yaml : mixed
$year : mixed
$month : mixed
$day : mixed
$hour : mixed
$minute : mixed
$second : mixed
Tags
dataProvider

getTimestampTests

Return values
mixed —

testParseUnquotedAsterisk()

public testParseUnquotedAsterisk() : mixed
Return values
mixed —

testParseUnquotedAsteriskFollowedByAComment()

public testParseUnquotedAsteriskFollowedByAComment() : mixed
Return values
mixed —

testParseUnquotedScalarStartingWithPercentCharacter()

public testParseUnquotedScalarStartingWithPercentCharacter() : mixed
Tags
group

legacy

expectedDeprecation

Not quoting the scalar "%bar " starting with the "%" indicator character is deprecated since Symfony 3.1 and will throw a ParseException in 4.0 on line 1. throws \Symfony\Component\Yaml\Exception\ParseException in 4.0

Return values
mixed —

testParseUnquotedScalarStartingWithReservedIndicator()

public testParseUnquotedScalarStartingWithReservedIndicator(mixed $indicator) : mixed
Parameters
$indicator : mixed
Tags
dataProvider

getReservedIndicators

Return values
mixed —

testParseUnquotedScalarStartingWithScalarIndicator()

public testParseUnquotedScalarStartingWithScalarIndicator(mixed $indicator) : mixed
Parameters
$indicator : mixed
Tags
dataProvider

getScalarIndicators

Return values
mixed —

testParseUnquotedStringContainingHashTagNotPrefixedBySpace()

public testParseUnquotedStringContainingHashTagNotPrefixedBySpace() : mixed
Return values
mixed —

testParseWithMapObjects()

public testParseWithMapObjects(mixed $yaml, mixed $value[, mixed $flags = Yaml::PARSE_OBJECT_FOR_MAP ]) : mixed
Parameters
$yaml : mixed
$value : mixed
$flags : mixed = Yaml::PARSE_OBJECT_FOR_MAP
Tags
dataProvider

getTestsForParseWithMapObjects

Return values
mixed —

testParseWithMapObjectsPassingTrue()

public testParseWithMapObjectsPassingTrue(mixed $yaml, mixed $value) : mixed
Parameters
$yaml : mixed
$value : mixed
Tags
group

legacy

dataProvider

getTestsForParseWithMapObjects

Return values
mixed —

testPhpConstTagWithEmptyValue()

public testPhpConstTagWithEmptyValue(mixed $expected, mixed $value) : mixed
Parameters
$expected : mixed
$value : mixed
Tags
dataProvider

phpConstTagWithEmptyValueProvider

Return values
mixed —

testPhpObjectWithEmptyValue()

public testPhpObjectWithEmptyValue(mixed $expected, mixed $value) : mixed
Parameters
$expected : mixed
$value : mixed
Tags
dataProvider

phpObjectTagWithEmptyValueProvider

Return values
mixed —

testTheEmptyStringIsAValidMappingKey()

public testTheEmptyStringIsAValidMappingKey() : mixed
Return values
mixed —

testUnfinishedInlineMap()

public testUnfinishedInlineMap() : mixed
Return values
mixed —

testVeryLongQuotedStrings()

public testVeryLongQuotedStrings() : mixed
Return values
mixed —

setUp()

protected setUp() : mixed
Return values
mixed —

Search results