PHP Class PhpSpec\Console\ConsoleIO

Inheritance: implements PhpSpec\IO\IO
ファイルを表示 Open project: phpspec/phpspec Class Usage Examples

Public Methods

Method Description
__construct ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output, PhpSpec\Config\OptionsConfig $config, PhpSpec\Console\Prompter $prompter )
askConfirmation ( string $question, boolean $default = true ) : boolean
cutTemp ( ) : null | string
freezeTemp ( )
getBlockWidth ( ) : integer
getBootstrapPath ( )
getLastWrittenMessage ( ) : string
isCodeGenerationEnabled ( ) : boolean
isDecorated ( ) : boolean
isFakingEnabled ( )
isInteractive ( ) : boolean
isRerunEnabled ( )
isStopOnFailureEnabled ( ) : boolean
isVerbose ( ) : boolean
overwrite ( string $message, integer | null $indent = null, boolean $newline = false )
overwriteln ( string $message = '', integer | null $indent = null )
setConsoleWidth ( integer $width )
write ( string $message, integer | null $indent = null, boolean $newline = false )
writeBrokenCodeBlock ( string $message, integer $indent )
writeTemp ( string $message, integer | null $indent = null )
writeln ( string $message = '', integer | null $indent = null )

Private Methods

Method Description
getCommonPrefix ( $stringA, $stringB )
indentText ( string $text, integer $indent ) : string

Method Details

__construct() public method

public __construct ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output, PhpSpec\Config\OptionsConfig $config, PhpSpec\Console\Prompter $prompter )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
$config PhpSpec\Config\OptionsConfig
$prompter PhpSpec\Console\Prompter

askConfirmation() public method

public askConfirmation ( string $question, boolean $default = true ) : boolean
$question string
$default boolean
return boolean

cutTemp() public method

public cutTemp ( ) : null | string
return null | string

freezeTemp() public method

public freezeTemp ( )

getBlockWidth() public method

public getBlockWidth ( ) : integer
return integer

getBootstrapPath() public method

public getBootstrapPath ( )

getLastWrittenMessage() public method

public getLastWrittenMessage ( ) : string
return string

isCodeGenerationEnabled() public method

isDecorated() public method

public isDecorated ( ) : boolean
return boolean

isFakingEnabled() public method

public isFakingEnabled ( )

isInteractive() public method

public isInteractive ( ) : boolean
return boolean

isRerunEnabled() public method

public isRerunEnabled ( )

isStopOnFailureEnabled() public method

public isStopOnFailureEnabled ( ) : boolean
return boolean

isVerbose() public method

public isVerbose ( ) : boolean
return boolean

overwrite() public method

public overwrite ( string $message, integer | null $indent = null, boolean $newline = false )
$message string
$indent integer | null
$newline boolean

overwriteln() public method

public overwriteln ( string $message = '', integer | null $indent = null )
$message string
$indent integer | null

setConsoleWidth() public method

public setConsoleWidth ( integer $width )
$width integer

write() public method

public write ( string $message, integer | null $indent = null, boolean $newline = false )
$message string
$indent integer | null
$newline boolean

writeBrokenCodeBlock() public method

public writeBrokenCodeBlock ( string $message, integer $indent )
$message string
$indent integer

writeTemp() public method

public writeTemp ( string $message, integer | null $indent = null )
$message string
$indent integer | null

writeln() public method

public writeln ( string $message = '', integer | null $indent = null )
$message string
$indent integer | null