PHP Class Gush\Tests\Command\CommandTestCase

Inheritance: extends Gush\Tests\BaseTestCase
Show file Open project: gushphp/gush Class Usage Examples

Protected Properties

Property Type Description
$localConfig

Protected Methods

Method Description
assertCommandOutputMatches ( $expectedLines, $output, $regex = false )
assertTableOutputMatches ( array $header, $rows, $output )
getCommandTester ( Command $command, array $systemConfig = null, array $localConfig = null, Closure | null $helperSetManipulator = null ) : Gush\Tests\Command\CommandTester
getInputStream ( $input )
requiresRealConfigDir ( ) : boolean Overwrite the method to enable configuration saving.
setExpectedCommandInput ( Command $command, array | string $input )

Method Details

assertCommandOutputMatches() protected method

protected assertCommandOutputMatches ( $expectedLines, $output, $regex = false )

assertTableOutputMatches() protected method

protected assertTableOutputMatches ( array $header, $rows, $output )
$header array

getCommandTester() protected method

protected getCommandTester ( Command $command, array $systemConfig = null, array $localConfig = null, Closure | null $helperSetManipulator = null ) : Gush\Tests\Command\CommandTester
$command Symfony\Component\Console\Command\Command
$systemConfig array
$localConfig array
$helperSetManipulator Closure | null
return Gush\Tests\Command\CommandTester

getInputStream() protected method

protected getInputStream ( $input )

requiresRealConfigDir() protected method

This should only be done when required by test as this slows down the testing process.
protected requiresRealConfigDir ( ) : boolean
return boolean return true to use a real dir rather a dummy This required for configuration storing commands.

setExpectedCommandInput() protected method

protected setExpectedCommandInput ( Command $command, array | string $input )
$command Symfony\Component\Console\Command\Command
$input array | string

Property Details

$localConfig protected static property

protected static $localConfig