Moodle  2.2.1
http://www.collinsharper.com
EclipseReporter Class Reference
Inheritance diagram for EclipseReporter:
Collaboration diagram for EclipseReporter:

Public Member Functions

 EclipseReporter (&$listener, $cc=false)
 getDumper ()
createListener ($port, $host="127.0.0.1")
createInvoker (&$invoker)
 escapeVal ($raw)
 paintPass ($message)
 paintFail ($message)
 paintError ($message)
 paintException ($exception)
 paintHeader ($test_name)
 paintFooter ($test_name)
 paintMethodStart ($method)
 paintMethodEnd ($method)
 paintCaseStart ($case)
 paintCaseEnd ($case)
 paintGroupStart ($group, $size)
 paintGroupEnd ($group)

Detailed Description

Definition at line 23 of file eclipse.php.


Member Function Documentation

& createInvoker ( &$  invoker)

Wraps the test in an output buffer.

Parameters:
SimpleInvoker$invokerCurrent test runner.
Returns:
EclipseInvoker Decorator with output buffering. public

Reimplemented from SimpleScorer.

Definition at line 66 of file eclipse.php.

& createListener ( port,
host = "127.0.0.1" 
)

Localhost connection from Eclipse.

Parameters:
integer$portPort to connect to Eclipse.
string$hostNormally localhost.
Returns:
SimpleSocket Connection to Eclipse.

Definition at line 55 of file eclipse.php.

EclipseReporter ( &$  listener,
cc = false 
)

Reporter to be run inside of Eclipse interface.

Parameters:
object$listenerEclipse listener (?).
boolean$ccWhether to include test coverage.

Definition at line 30 of file eclipse.php.

Here is the call graph for this function:

escapeVal ( raw)

C style escaping.

Parameters:
string$rawString with backslashes, quotes and whitespace.
Returns:
string Replaced with C backslashed tokens.

Definition at line 76 of file eclipse.php.

Here is the caller graph for this function:

getDumper ( )

Means to display human readable object comparisons.

Returns:
SimpleDumper Visual comparer.

Definition at line 45 of file eclipse.php.

paintCaseEnd ( case)

Drops the name.

Parameters:
string$test_nameName of test or other label. public

Reimplemented from SimpleScorer.

Definition at line 206 of file eclipse.php.

paintCaseStart ( case)

Stashes the test case name for the later failure message.

Parameters:
string$test_nameName of test or other label. public

Reimplemented from SimpleScorer.

Definition at line 197 of file eclipse.php.

Here is the call graph for this function:

paintError ( message)

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

Parameters:
string$messageTest message, but we only wnat the first. public

Reimplemented from SimpleScorer.

Definition at line 116 of file eclipse.php.

Here is the call graph for this function:

paintException ( exception)

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

Parameters:
string$messageTest message, but we only wnat the first. public

Reimplemented from SimpleScorer.

Definition at line 131 of file eclipse.php.

Here is the call graph for this function:

paintFail ( message)

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

Parameters:
string$messageTest message, but we only wnat the first. public

Reimplemented from SimpleScorer.

Definition at line 101 of file eclipse.php.

Here is the call graph for this function:

paintFooter ( test_name)

We don't display any special footer.

Parameters:
string$test_nameThe top level test. public

Definition at line 160 of file eclipse.php.

paintGroupEnd ( group)

Paints coverage report if enabled.

Parameters:
string$groupName of test or other label. public

Reimplemented from SimpleScorer.

Definition at line 231 of file eclipse.php.

Here is the call graph for this function:

paintGroupStart ( group,
size 
)

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

Parameters:
string$groupName of test or other label.
integer$sizeNumber of test cases starting. public

Reimplemented from SimpleScorer.

Definition at line 217 of file eclipse.php.

Here is the call graph for this function:

paintHeader ( test_name)

We don't display any special header.

Parameters:
string$test_nameFirst test top level to start. public

Definition at line 152 of file eclipse.php.

paintMethodEnd ( method)

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

Parameters:
string$test_nameName of test that is ending. public

Reimplemented from SimpleScorer.

Definition at line 182 of file eclipse.php.

paintMethodStart ( method)

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

Parameters:
string$test_nameName of test that is starting. public

Reimplemented from SimpleScorer.

Definition at line 169 of file eclipse.php.

Here is the call graph for this function:

paintPass ( message)

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

Parameters:
string$messageTest message, but we only wnat the first. public

Reimplemented from SimpleScorer.

Definition at line 88 of file eclipse.php.

Here is the call graph for this function:


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations