Add the original source packages to maemo, source lenny
[dh-make-perl] / dev / i386 / libtest-harness-perl / libtest-harness-perl-3.12 / t / lib / MySource.pm
1 # subclass for testing customizing & subclassing
2
3 package MySource;
4
5 use strict;
6 use vars '@ISA';
7
8 use MyCustom;
9 use TAP::Parser::Source;
10
11 @ISA = qw( TAP::Parser::Source MyCustom );
12
13 sub _initialize {
14     my $self = shift;
15     $self->SUPER::_initialize(@_);
16     $main::INIT{ ref($self) }++;
17     $self->{initialized} = 1;
18     return $self;
19 }
20
21 sub source {
22     my $self = shift;
23     return $self->SUPER::source(@_);
24 }
25
26 sub get_stream {
27     my $self   = shift;
28     my $stream = $self->SUPER::get_stream(@_);
29
30     # re-bless it:
31     bless $stream, 'MyIterator';
32 }
33
34 1;