blob: cb85df38dde000240b5cdb957722704bbc273869 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/usr/bin/env perl
use strict;
use warnings;
use lib 't/base2';
use Test::More;
use Test::Exception;
# Test passes if you comment this out
no circular::require;
use_ok('Foo');
lives_ok { is( Foo->bar, "bar", "Polymorphism" ) }
"bar() method available on Foo";
throws_ok { base->import( 'BadWolf' ) }
qr|Base class package "BadWolf" is empty|, "use base 'Some Bad File' should throw an exception";
done_testing;
|