6 use Test::More tests => 7;
10 can_ok( 'TAP::Object', 'new' );
11 can_ok( 'TAP::Object', '_initialize' );
12 can_ok( 'TAP::Object', '_croak' );
18 @ISA = qw(TAP::Object);
28 # I know these tests are simple, but they're documenting the base API, so
29 # necessary none-the-less...
30 my $obj = TAP::TestObj->new( 'foo', { bar => 'baz' } );
31 ok( $obj->{init}, '_initialize' );
32 is_deeply( $obj->{args}, [ 'foo', { bar => 'baz' } ], '_initialize: args' );
34 eval { $obj->_croak('eek') };
36 like( $err, qr/^eek/, '_croak' );