2 # This is automatically generated by author/import-moose-test.pl.
3 # DO NOT EDIT THIS FILE. ANY CHANGES WILL BE LOST!!!
4 use t::lib::MooseCompat;
17 has 'foo' => (is => 'rw', isa => 'Int');
27 has 'bar' => (is => 'rw', isa => 'Int');
37 Bar->meta->make_immutable;
38 } 'Bar->meta->make_immutable';
40 is( Bar->meta->get_method('DESTROY')->package_name, 'Bar',
41 'Bar has a DESTROY method in the Bar class (not inherited)' );
44 Foo->meta->make_immutable;
45 } 'Foo->meta->make_immutable';
47 is( Foo->meta->get_method('DESTROY')->package_name, 'Foo',
48 'Foo has a DESTROY method in the Bar class (not inherited)' );