use strict;
use warnings;
-use Test::More tests => 9;
+use Test::More tests => 6;
+use Test::Exception;
do {
package MyCompositeRoleA;
MyCompositeRoleB => { accessor => 'bar' };
};
-local $@;
-eval {
+TODO: {
+ local $TODO = "role-role application for parameterized roles doesn't work yet";
ok(MyDoubleConsumer->can('foo'), 'first role in composite applied successfully');
ok(MyDoubleConsumer->can('bar'), 'second role in composite applied successfully');
-};
-ok !$@, 'testing composite roles lived';
+};
do {
package MyExtendingRole;
MyExtendingRole => { foo => 23 };
};
-local $@;
-eval {
+TODO: {
+ local $TODO = "role-role application for parameterized roles doesn't work yet";
ok(MyExtendedConsumer->can('bar'), 'role composed through other role applied successfully');
- is(MyExtendedConsumer->new->foo, 23, 'role composing other role applied successfully');
-};
-ok !$@, 'testing role through application through other role lived';
+ is(eval { MyExtendedConsumer->new->foo }, 23, 'role composing other role applied successfully');
+};;
do {
package MyRoleProxy;
);
};
-local $@;
-eval {
+TODO: {
+ local $TODO = "role-role application for parameterized roles doesn't work yet";
ok(MyProxyConsumer->can('baz'), 'proxied role got applied successfully');
ok(MyProxyConsumer->can('qux'), 'other role besides proxied one got applied successfully');
};
-ok !$@, 'testing proxied roles lived';