5 use Test::More tests => 2;
11 use constant FOO => 'bar';
14 my $meta = Class::MOP::Class->initialize('Foo');
16 my %syms = $meta->get_all_package_symbols('CODE');
17 is(ref $syms{FOO}, 'CODE', 'get constant symbol');
21 %syms = $meta->get_all_package_symbols('CODE');
22 is(ref $syms{FOO}, 'CODE', 'constant symbol still there, although we dropped our reference');