File: 02subclass.t

package info (click to toggle)
libmoosex-configfromfile-perl 0.04-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 152 kB
  • sloc: perl: 1,333; makefile: 2
file content (22 lines) | stat: -rw-r--r-- 382 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env perl 
use strict;
use Test::More;
use Test::Fatal;
{
    package A;
    use Moose;
    with qw(MooseX::ConfigFromFile);

    sub get_config_from_file { }
}

{
    package B;
    use Moose;
    extends qw(A);
}

ok(B->does('MooseX::ConfigFromFile'), 'B does ConfigFromFile');
is(exception { B->new_with_config() }, undef, 'B->new_with_config lives');

done_testing();