Merge branch 'stable'
[gitmo/Class-MOP.git] / t / 032_universal_methods.t
CommitLineData
0c71943f 1#!perl
2
3use strict;
4use warnings;
5
6# UNIVERSAL methods
7
8use Test::More;
9use Class::MOP;
10
11my $meta_class = Class::MOP::Class->create_anon_class;
12
13my @universal_methods = qw/isa can VERSION/;
14push @universal_methods, 'DOES' if $] >= 5.010;
15
0c71943f 16TODO: {
17 local $TODO = 'UNIVERSAL methods should be available';
18
19 for my $method ( @universal_methods ) {
20 ok $meta_class->find_method_by_name($method), "has UNIVERSAL method $method";
21 }
22};
86a4d873 23
24done_testing;