6 use Test::More tests => 6;
14 use base 'Class::MOP::Class';
17 use base 'Class::MOP::Class';
20 use base 'Foo::Meta', 'Bar::Meta';
26 metaclass->import('Foo::Meta');
28 ok(!$@, '... Foo.meta => Foo::Meta is compatible') || diag $@;
33 metaclass->import('Bar::Meta');
35 ok(!$@, '... Bar.meta => Bar::Meta is compatible') || diag $@;
41 metaclass->import('Bar::Meta');
43 ok($@, '... Foo::Foo.meta => Bar::Meta is not compatible') || diag $@;
49 metaclass->import('Foo::Meta');
51 ok($@, '... Bar::Bar.meta => Foo::Meta is not compatible') || diag $@;
57 metaclass->import('FooBar::Meta');
59 ok(!$@, '... FooBar.meta => FooBar::Meta is compatible') || diag $@;
65 metaclass->import('FooBar::Meta');
67 ok(!$@, '... FooBar2.meta => FooBar::Meta is compatible') || diag $@;