The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

WWW::BookBot::Test - Test utilities for inherited bot of WWW::BookBot.

SYNOPSIS

  use Test::More tests => 37;
  BEGIN { use_ok('WWW::BookBot::Test'); use_ok(test_init('WWW::BookBot')); };
  test_begin();
  ...
  test_end();

ABSTRACT

  Test utilities for inherited classes of WWW::BookBot.

DESCRIPTION

WWW::BookBot::Test provides basic test routines for inherited classes of WWW::BookBot.

Basic test environment

  test_init($classname) will set internal test classname and return $classname.
  test_begin() will initialize test environment.
  test_end() will close test environment.

Test utilities

  new_bot({...}) new_bots a new $bot using given classname and arguments.
  read_file($filename) returns all contents of $filename.
  dump_class() dumps out first level of class.
  dump_var($var_name) dumps out all about $var_name of class.
  test_pattern($pattern_name, $content) tests given pattern with $content.

EXPORT

  all functions are exported.

BUGS, REQUESTS, COMMENTS

Please report any requests, suggestions or bugs via http://rt.cpan.org/NoAuth/ReportBug.html?Queue=WWW-BookBot

AUTHOR

Qing-Jie Zhou <qjzhou@hotmail.com>

SEE ALSO

WWW::BookBot