Documentation

InlineTest extends TestCase
in package

Table of Contents

Methods

getBinaryData()  : mixed
getDataForIsHash()  : mixed
getDataForParseReferences()  : mixed
getDateTimeDumpTests()  : mixed
getInvalidBinaryData()  : mixed
getNotPhpCompatibleMappingKeyData()  : mixed
getReservedIndicators()  : mixed
getScalarIndicators()  : mixed
getTestsForDump()  : mixed
getTestsForNullValues()  : mixed
getTestsForParse()  : mixed
getTestsForParsePhpConstants()  : mixed
getTestsForParseWithMapObjects()  : mixed
getTimestampTests()  : mixed
testDump()  : mixed
testDumpDateTime()  : mixed
testDumpNumericValueWithLocale()  : mixed
testExplicitStringCastingOfMappingKeys()  : mixed
testHashStringsResemblingExponentialNumericsShouldNotBeChangedToINF()  : mixed
testImplicitStringCastingOfMappingKeysIsDeprecated()  : mixed
testIsHash()  : mixed
testNotSupportedMissingValue()  : mixed
testOmittedMappingKeyIsParsedAsColon()  : mixed
testParse()  : mixed
testParseBinaryData()  : mixed
testParseInvalidBinaryData()  : mixed
testParseInvalidMappingKeyShouldThrowException()  : mixed
testParseInvalidMappingShouldThrowException()  : mixed
testParseInvalidSequenceShouldThrowException()  : mixed
testParseMappingKeyWithColonNotFollowedBySpace()  : mixed
testParseMapReferenceInSequence()  : mixed
testParseMapReferenceInSequenceAsFifthArgument()  : mixed
testParseMissingMappingValueAsNull()  : mixed
testParseNestedTimestampListAsDateTimeObject()  : mixed
testParsePhpConstants()  : mixed
testParsePhpConstantThrowsExceptionOnInvalidType()  : mixed
testParsePhpConstantThrowsExceptionWhenUndefined()  : 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
testParseWithMapObjects()  : mixed
testParseWithMapObjectsPassingTrue()  : mixed
testTheEmptyStringIsAValidMappingKey()  : mixed
testVeryLongQuotedStrings()  : mixed

Methods

getDataForIsHash()

public getDataForIsHash() : mixed

getDataForParseReferences()

public getDataForParseReferences() : mixed

getDateTimeDumpTests()

public getDateTimeDumpTests() : mixed

getInvalidBinaryData()

public getInvalidBinaryData() : mixed

getNotPhpCompatibleMappingKeyData()

public getNotPhpCompatibleMappingKeyData() : mixed

getReservedIndicators()

public getReservedIndicators() : mixed

getScalarIndicators()

public getScalarIndicators() : mixed

getTestsForDump()

public getTestsForDump() : mixed

getTestsForNullValues()

public getTestsForNullValues() : mixed

getTestsForParse()

public getTestsForParse() : mixed

getTestsForParsePhpConstants()

public getTestsForParsePhpConstants() : mixed

getTestsForParseWithMapObjects()

public getTestsForParseWithMapObjects() : mixed

getTimestampTests()

public getTimestampTests() : mixed

testDump()

public testDump(mixed $yaml, mixed $value[, mixed $parseFlags = 0 ]) : mixed
Parameters
$yaml : mixed
$value : mixed
$parseFlags : mixed = 0
Tags
dataProvider

getTestsForDump

testDumpDateTime()

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

getDateTimeDumpTests

testDumpNumericValueWithLocale()

public testDumpNumericValueWithLocale() : mixed

testExplicitStringCastingOfMappingKeys()

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

getNotPhpCompatibleMappingKeyData

testHashStringsResemblingExponentialNumericsShouldNotBeChangedToINF()

public testHashStringsResemblingExponentialNumericsShouldNotBeChangedToINF() : 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 version 3.3 and will throw \Symfony\Component\Yaml\Exception\ParseException in 4.0. Quote your evaluable mapping keys instead.

dataProvider

getNotPhpCompatibleMappingKeyData

testIsHash()

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

getDataForIsHash

testNotSupportedMissingValue()

public testNotSupportedMissingValue() : mixed
Tags
expectedException

\Symfony\Component\Yaml\Exception\ParseException

expectedExceptionMessage

Malformed inline YAML string: {this, is not, supported}.

testOmittedMappingKeyIsParsedAsColon()

public testOmittedMappingKeyIsParsedAsColon() : mixed
Tags
group

legacy

expectedDeprecation

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

testParse()

public testParse(mixed $yaml, mixed $value[, mixed $flags = 0 ]) : mixed
Parameters
$yaml : mixed
$value : mixed
$flags : mixed = 0
Tags
dataProvider

getTestsForParse

testParseBinaryData()

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

getBinaryData

testParseInvalidBinaryData()

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

getInvalidBinaryData

expectedException

\Symfony\Component\Yaml\Exception\ParseException

testParseInvalidMappingKeyShouldThrowException()

public testParseInvalidMappingKeyShouldThrowException() : mixed
Tags
expectedException

\Symfony\Component\Yaml\Exception\ParseException

testParseInvalidMappingShouldThrowException()

public testParseInvalidMappingShouldThrowException() : mixed
Tags
expectedException

\Symfony\Component\Yaml\Exception\ParseException

testParseInvalidSequenceShouldThrowException()

public testParseInvalidSequenceShouldThrowException() : mixed
Tags
expectedException

\Symfony\Component\Yaml\Exception\ParseException

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 version 3.2 and will throw a ParseException in 4.0. throws \Symfony\Component\Yaml\Exception\ParseException in 4.0

testParseMapReferenceInSequence()

public testParseMapReferenceInSequence() : mixed

testParseMapReferenceInSequenceAsFifthArgument()

public testParseMapReferenceInSequenceAsFifthArgument() : mixed
Tags
group

legacy

testParseMissingMappingValueAsNull()

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

getTestsForNullValues

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

testParsePhpConstants()

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

getTestsForParsePhpConstants

testParsePhpConstantThrowsExceptionOnInvalidType()

public testParsePhpConstantThrowsExceptionOnInvalidType() : mixed
Tags
expectedException

\Symfony\Component\Yaml\Exception\ParseException

expectedExceptionMessageRegExp

#The string "!php/const:PHP_INT_MAX" could not be parsed as a constant.*#

testParsePhpConstantThrowsExceptionWhenUndefined()

public testParsePhpConstantThrowsExceptionWhenUndefined() : mixed
Tags
expectedException

\Symfony\Component\Yaml\Exception\ParseException

expectedExceptionMessage

The constant "WRONG_CONSTANT" is not defined

testParseReferences()

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

getDataForParseReferences

testParseReferencesAsFifthArgument()

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

legacy

dataProvider

getDataForParseReferences

testParseScalarWithCorrectlyQuotedStringShouldReturnString()

public testParseScalarWithCorrectlyQuotedStringShouldReturnString() : mixed

testParseScalarWithIncorrectlyDoubleQuotedStringShouldThrowException()

public testParseScalarWithIncorrectlyDoubleQuotedStringShouldThrowException() : mixed
Tags
expectedException

\Symfony\Component\Yaml\Exception\ParseException

testParseScalarWithIncorrectlyQuotedStringShouldThrowException()

public testParseScalarWithIncorrectlyQuotedStringShouldThrowException() : mixed
Tags
expectedException

\Symfony\Component\Yaml\Exception\ParseException

testParseScalarWithNonEscapedBlackslashAtTheEndShouldThrowException()

public testParseScalarWithNonEscapedBlackslashAtTheEndShouldThrowException() : mixed
Tags
expectedException

\Symfony\Component\Yaml\Exception\ParseException

testParseScalarWithNonEscapedBlackslashShouldThrowException()

public testParseScalarWithNonEscapedBlackslashShouldThrowException() : mixed
Tags
expectedException

\Symfony\Component\Yaml\Exception\ParseException

expectedExceptionMessage

Found unknown escape character "\V".

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

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

testParseUnquotedAsterisk()

public testParseUnquotedAsterisk() : mixed
Tags
expectedException

\Symfony\Component\Yaml\Exception\ParseException

expectedExceptionMessage

A reference must contain at least one character.

testParseUnquotedAsteriskFollowedByAComment()

public testParseUnquotedAsteriskFollowedByAComment() : mixed
Tags
expectedException

\Symfony\Component\Yaml\Exception\ParseException

expectedExceptionMessage

A reference must contain at least one character.

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. throws \Symfony\Component\Yaml\Exception\ParseException in 4.0

testParseUnquotedScalarStartingWithReservedIndicator()

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

getReservedIndicators

expectedException

\Symfony\Component\Yaml\Exception\ParseException

expectedExceptionMessage

cannot start a plain scalar; you need to quote the scalar.

testParseUnquotedScalarStartingWithScalarIndicator()

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

getScalarIndicators

expectedException

\Symfony\Component\Yaml\Exception\ParseException

expectedExceptionMessage

cannot start a plain scalar; you need to quote the scalar.

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

testParseWithMapObjectsPassingTrue()

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

legacy

dataProvider

getTestsForParseWithMapObjects

testTheEmptyStringIsAValidMappingKey()

public testTheEmptyStringIsAValidMappingKey() : mixed

testVeryLongQuotedStrings()

public testVeryLongQuotedStrings() : mixed

        
On this page

Search results