--- trunk/t/02-frey-introspect.t 2008/07/11 19:19:42 100 +++ trunk/t/02-frey-introspect.t 2008/07/15 18:06:27 137 @@ -4,7 +4,7 @@ my $debug = @ARGV ? 1 : 0; -use Test::More tests => 114; +use Test::More tests => 50; use lib 'lib'; #use Devel::LeakTrace::Fast; @@ -13,7 +13,6 @@ BEGIN { use_ok('Frey::ClassLoader'); use_ok('Frey::Introspect'); - use_ok('Strix::User'); use_ok('Frey'); } @@ -24,7 +23,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 +45,6 @@ ok( my @methods = $o->methods, 'methods' ); diag dump( @methods ) if $debug; + + last unless --$more; }