NAME

Test::Builder::NoOutput - A subclass of Test::Builder which prints nothing

SYNOPSIS

use Test::Builder::NoOutput;

my $tb = Test::Builder::NoOutput->new;

...test as normal...

my $output = $tb->read;

DESCRIPTION

This is a subclass of Test::Builder which traps all its output. It is mostly useful for testing Test::Builder.

read

my $all_output = $tb->read;
my $output     = $tb->read($stream);

Returns all the output (including failure and todo output) collected so far. It is destructive, each call to read clears the output buffer.

If $stream is given it will return just the output from that stream. $stream's are...

out         output()
err         failure_output()
todo        todo_output()
all         all outputs

Defaults to 'all'.