Skip to content

Commit

Permalink
Clarified the documentation of the lifecycle helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
pdcawley committed Apr 4, 2009
1 parent 0893427 commit f32851f
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions lib/Test/Class/Sugar.pm
Expand Up @@ -305,7 +305,15 @@ Gets translated to:
See L<Test::Class/Test> for details of C<PLAN>'s semantics.
=item B<startup>, B<setup>, B<teardown>, C<shutdown>
=head2 Lifecycle Methods
=item B<startup>
=item B<setup>
=item B<teardown>
=item B<shutdown>
These lifecycle helpers work in pretty much the same way as L</test>, but with
the added wrinkle that, if you don't supply a name, they generate method names
Expand All @@ -323,7 +331,13 @@ is equivalent to writing:
}
Other than that, the lifecycle helpers behave pretty much as described in
L<Test::Class|Test::Class/Test>.
L<Test::Class|Test::Class/Test>. In particular, you can still give them names, so
testclass {
setup with a name {...}
}
works just fine.
=back
Expand Down

0 comments on commit f32851f

Please sign in to comment.