4 use Test::More tests => 5;
6 my $parent_class = 'File::Fetch';
7 my $child_class = 'File::Fetch::Subclass';
9 use_ok( $parent_class );
11 my $ff_parent = $parent_class->new( uri => 'http://example.com/index.html' );
12 isa_ok( $ff_parent, $parent_class );
14 can_ok( $child_class, qw( new fetch ) );
15 my $ff_child = $child_class->new( uri => 'http://example.com/index.html' );
16 isa_ok( $ff_child, $child_class );
17 isa_ok( $ff_child, $parent_class );
20 package File::Fetch::Subclass;
22 unshift @ISA, qw(File::Fetch);