function tablesUnitTest::setUp

8.0.x tablesUnitTest.php tablesUnitTest::setUp()
6.x tablesUnitTest.php tablesUnitTest::setUp()
7.x tablesUnitTest.php tablesUnitTest::setUp()
master tablesUnitTest.php tablesUnitTest::setUp()

File

tests/tablesUnitTest.php, line 11

Namespace

Unish

Class

tablesUnitTest
Unit tests for table formatting.

Code

function setUp() {
  // Bootstrap to ensure the auto-loaded is running so that Console_Table is found.
  drush_preflight();
  $this->original_columns = drush_get_context('DRUSH_COLUMNS');

  // Some table data we reuse between tests.
  $this->numbers = array(
    array('1', '12', '123'),
    array('1234', '12345', '123456'),
    array('1234567', '12345678', '123456789'),
  );
  $this->words = array(
    array('Drush is a command line shell', 'scripting interface', 'for Drupal'),
    array('A veritable', 'Swiss Army knife', 'designed to make life easier for us'),
  );
}