Test extends BaseCommand
Automated testing CLI tool.
Sets up environment and runs PHPUnit tests in each Sprinkle.
Tags
Table of Contents
$buildPath | string | |
---|---|---|
$slashes | string | |
$io | SymfonyStyle | |
$ci | ContainerInterface | |
configure() | {@inheritdoc} | mixed |
execute() | {@inheritdoc} | mixed |
parseSprinkleTestScope() | Return the sprinkle test class | string |
parseTestScope() | Parse testscope for | string |
initialize() | {@inheritdoc} | mixed |
setContainer() | Setup the global container object. | void |
isProduction() | Return if the app is in production mode. | bool |
Properties
$buildPath
protected
string
$buildPath
$slashes
protected
string
$slashes
= '\\'
$io
protected
SymfonyStyle
$io
Tags
$ci
protected
ContainerInterface
$ci
Methods
configure()
{@inheritdoc}
protected
configure(
)
: mixed
Return values
mixedexecute()
{@inheritdoc}
protected
execute(
$input :
InputInterface
, $output :
OutputInterface
)
: mixed
Parameters
- $input : InputInterface
- $output : OutputInterface
Return values
mixedparseSprinkleTestScope()
Return the sprinkle test class
protected
parseSprinkleTestScope(
$testscope :
string
)
: string
Parameters
- $testscope : string
Testscope received from command line
Return values
stringparseTestScope()
Parse testscope for
protected
parseTestScope(
$testscope :
string
)
: string
Parameters
- $testscope : string
Return values
string —string to append to command
initialize()
{@inheritdoc}
protected
initialize(
$input :
InputInterface
, $output :
OutputInterface
)
: mixed
Parameters
- $input : InputInterface
- $output : OutputInterface
Return values
mixedsetContainer()
Setup the global container object.
public
setContainer(
$ci :
ContainerInterface
)
: void
Parameters
- $ci : ContainerInterface
isProduction()
Return if the app is in production mode.
protected
isProduction(
)
: bool
@return bool True/False if the app is in production mode