NAME
Test::Proto::Formatter - handles output, formatting of RunnerEvents.
SYNOPSIS
my
$formatter
= Test::Proto::Formatter->new();
$formatter
->begin(
$testRunner
);
#? -> current_state?
$formatter
->
format
(
$_
)
foreach
@runnerEvents
;
# no, this doesn't look right
$formatter
->end(
$testRunner
);
The formatter is only used by the Test::Proto::TestRunner class. There is no reason to call it anywhere else. However, if you are writing a test script you might want to write your own formatter to give it to the TestRunner.
This minimal formatter does precisely nothing.
METHODS
event
$formatter
->event(
$runner
,
'new'
);
There are two supported events, 'new' and 'done'. The formatter reads the test runner to find out more.
format
$formatter
->
format
(
$runner
);
NOT YET IMPLEMENTED.
OTHER INFORMATION
For author, version, bug reports, support, etc, please see Test::Proto.