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()
completeCase::verifyComplete in tests/completeTest.php
Helper function to call completion and make common checks.
ConfigCase::testConfigList in tests/configTest.php
EnDisUnListInfoCase::testEnDisUnList in tests/pmEnDisUnListInfoTest.php
outputFormatCase::testOutputFormatWithDrupal in tests/outputFormatTest.php
Test output formats using various Drush commands on a Drupal site.
pmDownloadCase::testSelect in tests/pmDownloadTest.php

... See full list

File

tests/Unish/CommandUnishTestCase.php, line 93

Namespace

Unish

Class

CommandUnishTestCase

Code

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