PHP Class PhpSpec\Console\ConsoleIO

Inheritance: implements PhpSpec\IO\IO
Afficher le fichier Open project: phpspec/phpspec Class Usage Examples

Méthodes publiques

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

Méthode Description
getCommonPrefix ( $stringA, $stringB )
indentText ( string $text, integer $indent ) : string

Method Details

__construct() public méthode

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

public askConfirmation ( string $question, boolean $default = true ) : boolean
$question string
$default boolean
Résultat boolean

cutTemp() public méthode

public cutTemp ( ) : null | string
Résultat null | string

freezeTemp() public méthode

public freezeTemp ( )

getBlockWidth() public méthode

public getBlockWidth ( ) : integer
Résultat integer

getBootstrapPath() public méthode

public getBootstrapPath ( )

getLastWrittenMessage() public méthode

public getLastWrittenMessage ( ) : string
Résultat string

isCodeGenerationEnabled() public méthode

public isCodeGenerationEnabled ( ) : boolean
Résultat boolean

isDecorated() public méthode

public isDecorated ( ) : boolean
Résultat boolean

isFakingEnabled() public méthode

public isFakingEnabled ( )

isInteractive() public méthode

public isInteractive ( ) : boolean
Résultat boolean

isRerunEnabled() public méthode

public isRerunEnabled ( )

isStopOnFailureEnabled() public méthode

public isStopOnFailureEnabled ( ) : boolean
Résultat boolean

isVerbose() public méthode

public isVerbose ( ) : boolean
Résultat boolean

overwrite() public méthode

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

overwriteln() public méthode

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

setConsoleWidth() public méthode

public setConsoleWidth ( integer $width )
$width integer

write() public méthode

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

writeBrokenCodeBlock() public méthode

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

writeTemp() public méthode

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

writeln() public méthode

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