function CommandUnishTestCase::getOutputAsList

8.0.x CommandUnishTestCase.php CommandUnishTestCase::getOutputAsList()
7.x CommandUnishTestCase.php CommandUnishTestCase::getOutputAsList()
master CommandUnishTestCase.php CommandUnishTestCase::getOutputAsList()

Accessor for the last output, rtrimmed and split on newlines.

@access public

Return value

array Output as array of lines.

8 calls to CommandUnishTestCase::getOutputAsList()

File

tests/Unish/CommandUnishTestCase.php, line 93

Namespace

Unish

Class

CommandUnishTestCase

Code

function getOutputAsList() {
  return array_map('rtrim', explode("\n", $this->getOutput()));
}