Class EclipseReporter

Description

base reported class for eclipse plugin

Located in /eclipse.php (line 23)

SimpleScorer
   |
   --EclipseReporter
Method Summary
 EclipseReporter EclipseReporter ( &$listener, [boolean $cc = false], object $listener)
 EclipseInvoker &createInvoker ( &$invoker, SimpleInvoker $invoker)
 SimpleSocket &createListener (integer $port, [string $host = "127.0.0.1"])
 string escapeVal (string $raw)
 void paintCaseEnd ( $case, string $test_name)
 void paintCaseStart ( $case, string $test_name)
 void paintError (string $message)
 void paintException ( $exception, string $message)
 void paintFail (string $message)
 void paintFooter (string $test_name)
 void paintGroupEnd (string $group)
 void paintGroupStart (string $group, integer $size)
 void paintHeader (string $test_name)
 void paintMethodEnd ( $method, string $test_name)
 void paintMethodStart ( $method, string $test_name)
 void paintPass (string $message)
Variables
Methods
Constructor EclipseReporter (line 30)

Reporter to be run inside of Eclipse interface.

EclipseReporter EclipseReporter ( &$listener, [boolean $cc = false], object $listener)
  • object $listener: Eclipse listener (?).
  • boolean $cc: Whether to include test coverage.
  • &$listener
createInvoker (line 66)

Wraps the test in an output buffer.

  • return: Decorator with output buffering.
  • access: public
EclipseInvoker &createInvoker ( &$invoker, SimpleInvoker $invoker)

Redefinition of:
SimpleScorer::createInvoker()
Can wrap the invoker in preperation for running a test.
createListener (line 55)

Localhost connection from Eclipse.

  • return: Connection to Eclipse.
SimpleSocket &createListener (integer $port, [string $host = "127.0.0.1"])
  • integer $port: Port to connect to Eclipse.
  • string $host: Normally localhost.
escapeVal (line 76)

C style escaping.

  • return: Replaced with C backslashed tokens.
string escapeVal (string $raw)
  • string $raw: String with backslashes, quotes and whitespace.
getDumper (line 45)

Means to display human readable object comparisons.

  • return: Visual comparer.
SimpleDumper getDumper ()
paintCaseEnd (line 206)

Drops the name.

  • access: public
void paintCaseEnd ( $case, string $test_name)
  • string $test_name: Name of test or other label.
  • $case

Redefinition of:
SimpleScorer::paintCaseEnd()
Paints the end of a test case.
paintCaseStart (line 197)

Stashes the test case name for the later failure message.

  • access: public
void paintCaseStart ( $case, string $test_name)
  • string $test_name: Name of test or other label.
  • $case

Redefinition of:
SimpleScorer::paintCaseStart()
Paints the start of a test case.
paintError (line 116)

Stash the first error. Clicking the test item goes to first error.

  • access: public
void paintError (string $message)
  • string $message: Test message, but we only wnat the first.

Redefinition of:
SimpleScorer::paintError()
Deals with PHP 4 throwing an error.
paintException (line 131)

Stash the first exception. Clicking the test item goes to first message.

  • access: public
void paintException ( $exception, string $message)
  • string $message: Test message, but we only wnat the first.
  • $exception

Redefinition of:
SimpleScorer::paintException()
Deals with PHP 5 throwing an exception.
paintFail (line 101)

Stash the first failing item. Clicking the test item goes to first fail.

  • access: public
void paintFail (string $message)
  • string $message: Test message, but we only wnat the first.

Redefinition of:
SimpleScorer::paintFail()
Increments the fail count.
paintFooter (line 160)

We don't display any special footer.

  • access: public
void paintFooter (string $test_name)
  • string $test_name: The top level test.
paintGroupEnd (line 231)

Paints coverage report if enabled.

  • access: public
void paintGroupEnd (string $group)
  • string $group: Name of test or other label.

Redefinition of:
SimpleScorer::paintGroupEnd()
Paints the end of a group test.
paintGroupStart (line 217)

Stashes the name of the test suite. Starts test coverage if enabled.

  • access: public
void paintGroupStart (string $group, integer $size)
  • string $group: Name of test or other label.
  • integer $size: Number of test cases starting.

Redefinition of:
SimpleScorer::paintGroupStart()
Paints the start of a group test.
paintHeader (line 152)

We don't display any special header.

  • access: public
void paintHeader (string $test_name)
  • string $test_name: First test top level to start.
paintMethodEnd (line 182)

Only send one message if the test passes, after that suppress the message.

  • access: public
void paintMethodEnd ( $method, string $test_name)
  • string $test_name: Name of test that is ending.
  • $method

Redefinition of:
SimpleScorer::paintMethodEnd()
Paints the end of a test method.
paintMethodStart (line 169)

Paints nothing at the start of a test method, but stash the method name for later.

  • access: public
void paintMethodStart ( $method, string $test_name)
  • string $test_name: Name of test that is starting.
  • $method

Redefinition of:
SimpleScorer::paintMethodStart()
Paints the start of a test method.
paintPass (line 88)

Stash the first passing item. Clicking the test item goes to first pass.

  • access: public
void paintPass (string $message)
  • string $message: Test message, but we only wnat the first.

Redefinition of:
SimpleScorer::paintPass()
Increments the pass count.

Inherited Methods

Inherited From SimpleScorer

 SimpleScorer::SimpleScorer()
 SimpleScorer::createInvoker()
 SimpleScorer::getExceptionCount()
 SimpleScorer::getFailCount()
 SimpleScorer::getPassCount()
 SimpleScorer::getStatus()
 SimpleScorer::makeDry()
 SimpleScorer::paintCaseEnd()
 SimpleScorer::paintCaseStart()
 SimpleScorer::paintError()
 SimpleScorer::paintException()
 SimpleScorer::paintFail()
 SimpleScorer::paintFormattedMessage()
 SimpleScorer::paintGroupEnd()
 SimpleScorer::paintGroupStart()
 SimpleScorer::paintMessage()
 SimpleScorer::paintMethodEnd()
 SimpleScorer::paintMethodStart()
 SimpleScorer::paintPass()
 SimpleScorer::paintSignal()
 SimpleScorer::paintSkip()
 SimpleScorer::shouldInvoke()

Documentation generated on Sun, 04 May 2008 09:21:29 -0500 by phpDocumentor 1.3.0