Class TestEventEntryListFormatter_textOutput

Description

EventEntryListFormatter, text output test.

Tests that 0,1, and N+1 length lists print properly when using spaces and new lines to delimit the output and addding result blocks

Located in /tests/unit-tests/classes/ListFormatters/EventEntryListFormatter.php (line 135)

UnitTestCase
   |
   --TestEventEntryListFormatter_textOutput
Variable Summary
Method Summary
Variables
EventEntryListFormatter $formatter (line 155)

An instance of the class being tested

QueryResult $oneItemResult (line 150)

A sample (stubbed) QueryResult

string $resultString = "1st:______ 2nd:______ 3rd:______ 4th:______ 5th:______ 6th:______ 7th:______" (line 140)

The result block

array $row1 = array(100,'Eric','Nielsen','MIT','His','Partner','MIT') (line 145)

A sample row

Methods
setup (line 164)

Create the test fixture.

void setup ()
TestEventEntryListFormatter_tabbedOutput (line 157)
void TestEventEntryListFormatter_tabbedOutput ()
TestInductiveLeapNoWrap (line 217)

Tests the variable length list.

Note this test DOESN"T follow my normal inductive proof, because the constant footer interferes.

  • todo: Convert to inductive proof, but splitting the loop into a sub method to test its operation directly.
  • todo: Refactor after simpletest allows cloning/overriding of mocks
void TestInductiveLeapNoWrap ()
TestInductiveLeapWrap (line 251)

Tests the variable length list -- line wrap

Note this test DOESN"T follow my normal inductive proof, because the constant footer interferes.

  • todo: Convert to inductive proof, but splitting the loop into a sub method to test its operation directly.
  • todo: Refactor after simpletest allows cloning/overriding of mocks
void TestInductiveLeapWrap ()
TestOneEntry (line 191)

Tests the one item list, base case.

void TestOneEntry ()
TestZeroEntries (line 174)

Tests the empty list.

void TestZeroEntries ()

Documentation generated on Tue, 25 Apr 2006 13:01:27 -0400 by phpDocumentor 1.3.0RC3