UNIVERSAL methods are now part of the MOP
[gitmo/Moose.git] / t / cmop / universal_methods.t
CommitLineData
38bf2a25 1use strict;
2use warnings;
3
38bf2a25 4use Test::More;
5use Class::MOP;
6
7my $meta_class = Class::MOP::Class->create_anon_class;
8
9my @universal_methods = qw/isa can VERSION/;
10push @universal_methods, 'DOES' if $] >= 5.010;
11
12TODO: {
38bf2a25 13 for my $method ( @universal_methods ) {
050ec051 14 ok $meta_class->find_method_by_name($method), "has UNIVERSAL method $method";
38bf2a25 15 }
16};
17
18done_testing;