Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Phrozn
Runner
CommandLine
Callback
Base
setUnitTestData
Phrozn\Runner\CommandLine\Callback\Base::setUnitTestData PHP Method
Base Class Documentation
Show file
Open project: farazdagi/phrozn
setUnitTestData()
public
method
Since Unit Testing readline can be tricky, confirm answer is exposed to unit test via this method. Simply pass the string you want to be used in place of readline() result.
public
setUnitTestData
(
$data
) :
Phrozn\Runner\CommandLine\Callback
return
Phrozn\Runner\CommandLine\Callback
public function setUnitTestData($data) { $this->unitTestData = $data; return $this; }
Base
combine
getCommandMeta
getConfig
getFooter
getHeader
getOutputter
getParseResult
getPathArgument
getRealCommandName
isAbsolute
out
pad
pre
readLine
setConfig
setOutputter
setParseResult
setUnitTestData
useAnsiColors