Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add 'attributes' so people don't rely on global variables.
Also clean up the docs a bit.
- Loading branch information
Curtis Poe
committed
Apr 10, 2010
1 parent
5a172dd
commit 42598f3
Showing
6 changed files
with
118 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
package My::Test::Class::Child; | ||
|
||
use Test::Class::Most parent => 'My::Test::Class'; | ||
use Test::Class::Most | ||
parent => 'My::Test::Class', | ||
attributes => 'child1'; | ||
|
||
sub startup : Tests(startup) { | ||
my $test = shift; | ||
$test->SUPER::startup; | ||
$test->child1('from child1'); | ||
} | ||
|
||
sub parent { | ||
['My::Test::Class']; | ||
} | ||
|
||
sub child1 { 'from child1' } | ||
|
||
1; |