strict->import;
warnings->import;
- no strict 'refs';
- @{ $CALLER . '::ISA' } = 'Mouse::Object';
+ my $meta = Mouse::Class->initialize($CALLER);
+ $meta->superclasses('Mouse::Object')
+ unless $meta->superclasses;
goto $exporter;
}
#!/usr/bin/env perl
use strict;
use warnings;
-use Test::More tests => 5;
+use Test::More tests => 7;
use lib 't/lib';
do {
can_ok('Mouse::TestClass' => qw(mouse antimouse));
+eval "
+ package Child;
+ use Mouse;
+";
+
+isa_ok($child => 'Class');
+isa_ok($child => 'Mouse::Object');
+