6 use lib 't/lib', 'lib';
17 ::lives_ok { extends 'Foo' } 'loaded Foo superclass correctly';
25 ::lives_ok { extends 'Bar' } 'loaded (inline) Bar superclass correctly';
33 ::lives_ok { extends 'Foo', 'Bar' }
34 'loaded Foo and (inline) Bar superclass correctly';
42 ::throws_ok { extends 'No::Class' }
43 qr{Can't locate No/Class\.pm in \@INC},
44 'correct error when superclass could not be found';
56 ::lives_ok { extends 'Foo', Affe => { -version => 13 } }
57 'extends with version requirement';
64 ::throws_ok { extends 'Foo', Affe => { -version => 42 } }
65 qr/Affe version 42 required--this is only version 23/,
66 'extends with unsatisfied version requirement';