Phrozn\Runner\CommandLine\Callback\Base::readLine PHP Method

readLine() public method

Read-line either from STDIN or mock unit test data
public readLine ( ) : string
return string
    public function readLine()
    {
        if (null !== $this->unitTestData) {
            return $this->unitTestData;
        } else {
            $outputter = new PlainOutputter();
            $reader = new Reader();
            return $reader->setOutputter($outputter)->readLine("Type 'yes' to continue: ");
        }
    }