--- trunk/t/02-frey-introspect.t 2008/07/11 19:19:42 100 +++ trunk/t/02-frey-introspect.t 2008/07/11 22:54:42 101 @@ -4,7 +4,7 @@ my $debug = @ARGV ? 1 : 0; -use Test::More tests => 114; +use Test::More tests => 51; use lib 'lib'; #use Devel::LeakTrace::Fast; @@ -24,7 +24,9 @@ ok( $f->classes, 'classes again' ); -foreach my $package ( map { warn dump( $_ ); keys %$_ } @{ $f->classes } ) { +my $more = 5; + +foreach my $package ( $f->classes ) { ok( my $o = Frey::Introspect->new( debug => $debug, package => $package ), 'new' ); isa_ok( $o, 'Frey::Introspect' ); @@ -44,4 +46,6 @@ ok( my @methods = $o->methods, 'methods' ); diag dump( @methods ) if $debug; + + last unless --$more; }