/**
* Read-line either from STDIN or mock unit test data
*
* @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: ");
}
}