fixing tests for new output method

This commit is contained in:
Graham Knop 2008-04-10 22:15:15 +00:00
parent 74381281fa
commit d2116bf797
3 changed files with 31 additions and 16 deletions

View file

@ -349,6 +349,26 @@ sub setup_param {
#----------------------------------------------------------------------------
sub clear_output {
my $self = shift;
$self->{output} = '';
}
sub get_output {
my $self = shift;
return $self->{output};
}
sub print {
my $self = shift;
$self->{output} ||= '';
for my $p (@_) {
$self->{output} .= $p;
}
}
#----------------------------------------------------------------------------
=head2 protocol ( $value )
Getter and setter for protocol. If $value is passed in, it will set the protocol of