PHP Класс Gush\Tests\Command\CommandTestCase

Наследование: extends Gush\Tests\BaseTestCase
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$localConfig

Защищенные методы

Метод Описание
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 )

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

assertCommandOutputMatches() защищенный Метод

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

assertTableOutputMatches() защищенный Метод

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

getCommandTester() защищенный Метод

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
Результат Gush\Tests\Command\CommandTester

getInputStream() защищенный Метод

protected getInputStream ( $input )

requiresRealConfigDir() защищенный Метод

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

setExpectedCommandInput() защищенный Метод

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

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

$localConfig защищенное статическое свойство

protected static $localConfig