PHP Класс Neos\Flow\Tests\Unit\Cli\RequestBuilderTest

Наследование: extends Neos\Flow\Tests\UnitTestCase
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$mockCommand Neos\Flow\Cli\Command
$mockCommandManager Neos\Flow\Cli\CommandManager
$mockObjectManager Neos\Flow\ObjectManagement\ObjectManagerInterface
$mockReflectionService Neos\Flow\Reflection\ReflectionService
$requestBuilder Neos\Flow\Cli\RequestBuilder

Открытые методы

Метод Описание
CliAccesWithArgumentsWithAndWithoutValuesBuildsCorrectRequest ( ) Checks if a CLI request specifying some mixed "console style" (-c or --my-argument -f=value) arguments with and without values results in the expected request object
CliAccesWithShortArgumentsBuildsCorrectRequest ( ) Checks if a CLI request specifying some short "console style" (-c value or -c=value or -c = value) arguments results in the expected request object
afterAllRequiredArgumentsUnnamedParametersAreStoredAsExceedingArguments ( )
argumentWithValueSeparatedByEqualSignBuildsCorrectRequest ( )
argumentsAreDetectedAfterOptions ( )
booleanOptionsAreConsideredEvenIfAnUnnamedArgumentFollows ( )
booleanOptionsCanHaveOnlyCertainValuesIfTheValueIsAssignedWithoutEqualSign ( )
checkIfCliAccesWithPackageControllerActionAndArgumentsToleratesSpaces ( ) Checks if a CLI request specifying some "console style" (--my-argument =value) arguments with spaces between name and value results in the expected request object
cliAccessWithPackageControllerActionAndArgumentsBuildsCorrectRequest ( ) Checks if a CLI request specifying some "console style" (--my-argument=value) arguments results in the expected request object
cliAccessWithPackageControllerAndActionNameBuildsCorrectRequest ( ) Checks if a CLI request specifying a package, controller and action name results in the expected request object
exceedingArgumentsMayBeSpecified ( )
ifCommandCantBeResolvedTheHelpScreenIsShown ( )
ifNamedArgumentsAreUsedAllRequiredArgumentsMustBeNamed ( )
ifUnnamedArgumentsAreUsedAllRequiredArgumentsMustBeUnnamed ( )
insteadOfNamedArgumentsTheArgumentsCanBePassedUnnamedInTheCorrectOrder ( )
optionsAreNotMappedToCommandArgumentsIfTheyAreUnnamed ( )
quotedArgumentValuesAreCorrectlyParsedWhenPassingTheCommandAsString ( $quotedArgument, $expectedResult )
quotedValues ( ) : array Data provider
setUp ( ) Sets up this test case

Описание методов

CliAccesWithArgumentsWithAndWithoutValuesBuildsCorrectRequest() публичный Метод

Checks if a CLI request specifying some mixed "console style" (-c or --my-argument -f=value) arguments with and without values results in the expected request object

CliAccesWithShortArgumentsBuildsCorrectRequest() публичный Метод

Checks if a CLI request specifying some short "console style" (-c value or -c=value or -c = value) arguments results in the expected request object

afterAllRequiredArgumentsUnnamedParametersAreStoredAsExceedingArguments() публичный Метод

argumentWithValueSeparatedByEqualSignBuildsCorrectRequest() публичный Метод

argumentsAreDetectedAfterOptions() публичный Метод

booleanOptionsAreConsideredEvenIfAnUnnamedArgumentFollows() публичный Метод

booleanOptionsCanHaveOnlyCertainValuesIfTheValueIsAssignedWithoutEqualSign() публичный Метод

checkIfCliAccesWithPackageControllerActionAndArgumentsToleratesSpaces() публичный Метод

Checks if a CLI request specifying some "console style" (--my-argument =value) arguments with spaces between name and value results in the expected request object

cliAccessWithPackageControllerActionAndArgumentsBuildsCorrectRequest() публичный Метод

Checks if a CLI request specifying some "console style" (--my-argument=value) arguments results in the expected request object

cliAccessWithPackageControllerAndActionNameBuildsCorrectRequest() публичный Метод

Checks if a CLI request specifying a package, controller and action name results in the expected request object

exceedingArgumentsMayBeSpecified() публичный Метод

ifCommandCantBeResolvedTheHelpScreenIsShown() публичный Метод

ifNamedArgumentsAreUsedAllRequiredArgumentsMustBeNamed() публичный Метод

ifUnnamedArgumentsAreUsedAllRequiredArgumentsMustBeUnnamed() публичный Метод

insteadOfNamedArgumentsTheArgumentsCanBePassedUnnamedInTheCorrectOrder() публичный Метод

optionsAreNotMappedToCommandArgumentsIfTheyAreUnnamed() публичный Метод

quotedArgumentValuesAreCorrectlyParsedWhenPassingTheCommandAsString() публичный Метод

public quotedArgumentValuesAreCorrectlyParsedWhenPassingTheCommandAsString ( $quotedArgument, $expectedResult )

quotedValues() публичный Метод

Data provider
public quotedValues ( ) : array
Результат array

setUp() публичный Метод

Sets up this test case
public setUp ( )

Описание свойств

$mockCommand защищенное свойство

protected Command,Neos\Flow\Cli $mockCommand
Результат Neos\Flow\Cli\Command

$mockCommandManager защищенное свойство

protected CommandManager,Neos\Flow\Cli $mockCommandManager
Результат Neos\Flow\Cli\CommandManager

$mockObjectManager защищенное свойство

protected ObjectManagerInterface,Neos\Flow\ObjectManagement $mockObjectManager
Результат Neos\Flow\ObjectManagement\ObjectManagerInterface

$mockReflectionService защищенное свойство

protected ReflectionService,Neos\Flow\Reflection $mockReflectionService
Результат Neos\Flow\Reflection\ReflectionService

$requestBuilder защищенное свойство

protected RequestBuilder,Neos\Flow\Cli $requestBuilder
Результат Neos\Flow\Cli\RequestBuilder