Class TestCompetitorListFormatter_tabbedOutput

Description

CompetitorListFormatter, 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/CompetitorListFormatter.php (line 34)

UnitTestCase
   |
   --TestCompetitorListFormatter_tabbedOutput
Variable Summary
Method Summary
 TestCompetitorListFormatter_tabbedOutput TestCompetitorListFormatter_tabbedOutput ()
 void setup ()
 void TestOneEntry ()
 void TestZeroEntries ()
Variables
CompetitorListFormatter $formatter (line 54)

An instance of the class being tested

string $listName = "LIST OF COMPETITORS" (line 39)

The header of the list

QueryResult $oneItemResult (line 49)

A sample (stubbed) QueryResult

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

A sample row

Methods
Constructor TestCompetitorListFormatter_tabbedOutput (line 56)
TestCompetitorListFormatter_tabbedOutput TestCompetitorListFormatter_tabbedOutput ()
setup (line 63)

Create the test fixture.

void setup ()
TestInductiveLeap (line 100)

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 85)

Tests the one item list, base case.

void TestOneEntry ()
TestZeroEntries (line 73)

Tests the empty list.

void TestZeroEntries ()

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