PHP 클래스 Gush\Tests\Command\CommandTestCase

상속: extends Gush\Tests\BaseTestCase
파일 보기 프로젝트 열기: gushphp/gush 1 사용 예제들

보호된 프로퍼티들

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