Test::Pockito::Exported - A version of Pockito that's more terse.
Creates a package level $pocket object within Test::Pockito::Exported and exports subs to interact with it.
Saves on typing.
$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( ..
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