Class TreemapReporter

Description

Constructs and renders a treemap visualization of a test run

Located in /extensions/treemap_reporter.php (line 21)

SimpleReporterDecorator
   |
   --TreemapReporter
Direct descendents
Class Description
 class JqueryTreemapReporter outputs unordered list representing treemap of test report, and attaches jQuery Treemap to render results.
Method Summary
 TreemapReporter __construct ()
 void divideMapNodes (TreemapNode $map, boolean $aspect)
 void paintFooter ( $group)
 void paintGroupEnd ( $group)
 void paintRectangleStart ( $node,  $horiz,  $vert)
 void _getCss ()
Variables

Inherited Variables

Inherited from SimpleReporterDecorator

SimpleReporterDecorator::$reporter
Methods
Constructor __construct (line 23)
TreemapReporter __construct ()

Redefinition of:
SimpleReporterDecorator::__construct()
Mediates between the reporter and the test case.
divideMapNodes (line 98)

divides the test results based on a slice and dice algorithm

  • private:
void divideMapNodes (TreemapNode $map, boolean $aspect)
  • TreemapNode $map: sorted
  • boolean $aspect: flips the aspect between horizontal and vertical

Redefined in descendants as:
paintFooter (line 82)

paints wrapping treemap divs

  • todo: how to configure aspect and other parameters?
void paintFooter ( $group)
  • $group
paintGroupEnd (line 121)
void paintGroupEnd ( $group)
  • $group

Redefinition of:
SimpleReporterDecorator::paintGroupEnd()
Paints the end of a group test.
paintRectangleEnd (line 74)

paints end tag for test node div

void paintRectangleEnd ()

Redefined in descendants as:
paintRectangleStart (line 64)

paints start tag for div representing a test node

void paintRectangleStart ( $node,  $horiz,  $vert)
  • $node
  • $horiz
  • $vert

Redefined in descendants as:
paintResultsFooter (line 56)

places a clearing break below the end of the test nodes

void paintResultsFooter ()

Redefined in descendants as:
paintResultsHeader (line 44)

paints the HTML header and sets up results

void paintResultsHeader ()

Redefined in descendants as:
_getCss (line 31)

basic CSS for floating nested divs

  • todo: checkout some weird border bugs
void _getCss ()

Redefined in descendants as:

Inherited Methods

Inherited From SimpleReporterDecorator

 SimpleReporterDecorator::__construct()
 SimpleReporterDecorator::createInvoker()
 SimpleReporterDecorator::getDumper()
 SimpleReporterDecorator::getStatus()
 SimpleReporterDecorator::getTestList()
 SimpleReporterDecorator::makeDry()
 SimpleReporterDecorator::paintCaseEnd()
 SimpleReporterDecorator::paintCaseStart()
 SimpleReporterDecorator::paintError()
 SimpleReporterDecorator::paintException()
 SimpleReporterDecorator::paintFail()
 SimpleReporterDecorator::paintFormattedMessage()
 SimpleReporterDecorator::paintGroupEnd()
 SimpleReporterDecorator::paintGroupStart()
 SimpleReporterDecorator::paintMessage()
 SimpleReporterDecorator::paintMethodEnd()
 SimpleReporterDecorator::paintMethodStart()
 SimpleReporterDecorator::paintPass()
 SimpleReporterDecorator::paintSignal()
 SimpleReporterDecorator::paintSkip()
 SimpleReporterDecorator::shouldInvoke()

Documentation generated on Sun, 31 Oct 2010 16:32:50 -0500 by phpDocumentor 1.4.3