The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
use strict;
use warnings;
use Test::More tests => 2;

use lib 't/lib';

use TestClass;

is_deeply(
    TestClass->meta->get_method('foo')->attributes,
    [q{SomeAttribute}, q{AnotherAttribute('with argument')}],
);

is_deeply(
    SubClass->meta->get_method('foo')->attributes,
    [(q{Attributes}) x 3],
);