Package DE_EPAGES::Core::API::Test
Example |
package MyTest;
use base DE_EPAGES::Core::API::Test;
use Test::More tests => 1;
sub test {
my $self = shift;
ok( 1, 'selftest' );
}
sub init {
my $self = shift;
}
sub cleanup {
my $self = shift;
}
sub preCondition {
my $self = shift;
}
__PACKAGE__->runScript;
1;
|
Functions
- new
- run
- runScript
new
Creates an instance of a test case.
Syntax |
$Test = PackageName->new;
|
run
Runs the test case.
Calls the method test() of the given package.
Also calls the methods init() and cleanup() if they exist.
runScript
Runs the test case as a script.
Creates an instance of PackageName and calls run on that
instance.
Syntax |
PackageName->runScript;
|