7
sub _build_counter { return 0 }
9
before each_test => sub {
11
pass("starting before main modifier");
12
$self->counter( $self->counter + 1 );
15
after each_test => sub {
17
$self->counter( $self->counter - 1 );
18
pass("finishing after main modifier");
21
test 'is two' => sub { is( shift->counter, 2, "counter is 2" ) };
23
test 'still two' => sub { is( shift->counter, 2, "counter is still 2" ) };