File: 24_class_can_isa.t

package info (click to toggle)
libmoosex-types-perl 0.45-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 472 kB
  • ctags: 63
  • sloc: perl: 987; makefile: 2
file content (22 lines) | stat: -rw-r--r-- 490 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
use strict;
use warnings FATAL => 'all';

use Test::More;
use if $ENV{AUTHOR_TESTING}, 'Test::Warnings';
use Test::Fatal;

use MooseX::Types::TypeDecorator;

is(
    exception { MooseX::Types::TypeDecorator->isa('X') },
    undef,
    'no exception calling ->isa on MooseX::Types::TypeDecorator as class method'
);

is(
    exception { MooseX::Types::TypeDecorator->can('X') },
    undef,
    'no exception calling ->can on MooseX::Types::TypeDecorator as class method'
);

done_testing();