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

NAME

Test::Pockito::Exported - A version of Pockito that's more terse.

SETUP

SYNOPSIS

Creates a package level $pocket object within Test::Pockito::Exported and exports subs to interact with it. Saves on typing.

DESCRIPTION

$pocket is handled for you. Subs are exported into your namespace that interact with it. Available to you without a reference to a Pockito object are

  • mock( @_ )

  • when( .. )

  • report_expected_calls

  • expected_calls

Some calls are created to access properties such as 'go', 'warn' and the underlying Pockito object itself.

  • setup( @_ ) performs a Test::Pockito->new( @_ ) and stores the object internally.

  • whine sets 'warn' to 1 (on).

  • go sets 'go' to 1

  • stop sets 'stop' to 1

DESCRIPTION

1 POD Error

The following errors were encountered while parsing the POD:

Around line 48:

You forgot a '=back' before '=head1'