summaryrefslogtreecommitdiffstats
path: root/t/04-base2.t
blob: c0be7a7db777f53fdbc406fe394f9fd0e1935dfb (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/04';
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;