| 1 |
use Test2::V0 -target => 'App::Yath::Plugin'; |
| 2 |
|
| 3 |
isa_ok($CLASS, ['Test2::Harness::Plugin'], "Subclasses Test2::Harness::Plugin"); |
| 4 |
|
| 5 |
can_ok($CLASS, ['finish'], "finish() is defined"); |
| 6 |
is([$CLASS->finish], [], "finish returns an empty list in list context"); |
| 7 |
is($CLASS->finish, undef, "finish returns undef in scalar context"); |
| 8 |
|
| 9 |
ok(!$CLASS->can('sort_files'), "sort_files is not defined by default"); |
| 10 |
ok(!$CLASS->can('sort_files_2'), "sort_files_2 is not defined by default"); |
| 11 |
ok(!$CLASS->can('handle_event'), "handle_event is not defined by default"); |
| 12 |
|
| 13 |
done_testing; |