Class TestEventEntryListFormatter_tabbedOutput

Description

EventEntryListFormatter, tabbbed output test.

Tests that 0,1, and N+1 length lists print properly when using tabs to delimit the output and no other formatting is applied to the list items.

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

UnitTestCase
   |
   --TestEventEntryListFormatter_tabbedOutput
Variable Summary
Method Summary
 TestEventEntryListFormatter_tabbedOutput TestEventEntryListFormatter_tabbedOutput ()
 void setup ()
 void TestOneEntry ()
 void TestZeroEntries ()
Variables
EventEntryListFormatter $formatter (line 45)

An instance of the class being tested

QueryResult $oneItemResult (line 40)

A sample (stubbed) QueryResult

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

A sample row

Methods
Constructor TestEventEntryListFormatter_tabbedOutput (line 47)
TestEventEntryListFormatter_tabbedOutput TestEventEntryListFormatter_tabbedOutput ()
setup (line 54)

Create the test fixture.

void setup ()
TestInductiveLeap (line 102)

Tests the variable length list.

Notice that this is an inductive proof, we assume the correct behavoir, add a new row and compare the new result to the old result+expected delta.

  • todo: Refactor after simpletest allows cloning/overriding of mocks
void TestInductiveLeap ()
TestOneEntry (line 82)

Tests the one item list, base case.

void TestOneEntry ()
TestZeroEntries (line 64)

Tests the empty list.

void TestZeroEntries ()

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