PHP Class Gush\Tests\Command\CommandTestCase

Inheritance: extends Gush\Tests\BaseTestCase
Afficher le fichier Open project: gushphp/gush Class Usage Examples

Protected Properties

Свойство Type Description
$localConfig

Méthodes protégées

Méthode 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 méthode

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

assertTableOutputMatches() protected méthode

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

getCommandTester() protected méthode

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
Résultat Gush\Tests\Command\CommandTester

getInputStream() protected méthode

protected getInputStream ( $input )

requiresRealConfigDir() protected méthode

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

setExpectedCommandInput() protected méthode

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

Property Details

$localConfig protected_oe static_oe property

protected static $localConfig