3 use Test::More tests => 2;
7 unless (eval { require Moose; Moose->VERSION(0.72); 1 }) {
9 skip 'This test requires Moose 0.72', 2;
14 local $SIG{__WARN__} = sub {};
19 has 'name' => ( is => 'ro' );
21 sub DESTROY { shift->name }
23 __PACKAGE__->meta->make_immutable;
27 ok( ! $@, 'evaled FooBar package' )
29 my $f = FooBar->new( name => 'SUSAN' );
31 is( $f->DESTROY, 'SUSAN',
32 'Class::MOP::Class should not override an existing DESTROY method' );