561f6e2c789a55cacc1f889f1fe99df5e7cd51a4
[dh-make-perl] / dev / arm / libtest-harness-perl / libtest-harness-perl-3.12 / t / lib / MyIterator.pm
1 # subclass for testing customizing & subclassing
2
3 package MyIterator;
4
5 use strict;
6 use vars '@ISA';
7
8 use MyCustom;
9 use TAP::Parser::Iterator;
10
11 @ISA = qw( TAP::Parser::Iterator MyCustom );
12
13 sub _initialize {
14     my $self = shift;
15     $self->SUPER::_initialize(@_);
16     $main::INIT{ ref($self) }++;
17     $self->{initialized} = 1;
18     $self->{content} = [ 'whats TAP all about then?', '1..1', 'ok 1' ];
19     return $self;
20 }
21
22 sub next {
23     return shift @{ $_[0]->{content} };
24 }
25
26 1;