PHP 클래스 Neos\Flow\Tests\Unit\Cli\RequestBuilderTest

상속: extends Neos\Flow\Tests\UnitTestCase
파일 보기 프로젝트 열기: neos/flow-development-collection

보호된 프로퍼티들

프로퍼티 타입 설명
$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