7 use Moose::Util qw( find_meta );
32 = Moose::Meta::Role->combine( map { [ find_meta($_) => {} ] }
33 qw( RoleA RoleB RoleC ) );
34 ok( $composite->requires_method('foo'), 'Composite of [ABC] requires a foo method' );
35 ok( ! $composite->has_method('foo'), 'Composite of [ABC] does not also have a foo method' );
40 = Moose::Meta::Role->combine( map { [ find_meta($_) => {} ] }
41 qw( RoleA RoleC RoleB ) );
42 ok( $composite->requires_method('foo'), 'Composite of [ACB] requires a foo method' );
43 ok( ! $composite->has_method('foo'), 'Composite of [ACB] does not also have a foo method' );