Allow metaclasses to be reinitialized from an existing metaclass, instead of only...
[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
16plan tests => scalar @universal_methods;
17
18TODO: {
19 local $TODO = 'UNIVERSAL methods should be available';
20
21 for my $method ( @universal_methods ) {
22 ok $meta_class->find_method_by_name($method), "has UNIVERSAL method $method";
23 }
24};