X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F014_attribute_introspection.t;h=84fd2fd73a0e409a58492b4ab36202f88fbeddf9;hb=164bf00ba31a0c8e486033690a54fea2112fe207;hp=16cf78fa14794b580c825cded93dec7bdcf4eb1d;hpb=89871ad6548566c183b41a36cc4e62e9b72fb5a0;p=gitmo%2FClass-MOP.git diff --git a/t/014_attribute_introspection.t b/t/014_attribute_introspection.t index 16cf78f..84fd2fd 100644 --- a/t/014_attribute_introspection.t +++ b/t/014_attribute_introspection.t @@ -1,14 +1,10 @@ -#!/usr/bin/perl - use strict; use warnings; -use Test::More tests => 62; +use Test::More tests => 65; use Test::Exception; -BEGIN { - use_ok('Class::MOP'); -} +use Class::MOP; { my $attr = Class::MOP::Attribute->new('$test'); @@ -39,6 +35,8 @@ BEGIN { has_default default is_default_a_coderef has_initializer initializer + definition_context + slots get_value set_value @@ -56,8 +54,11 @@ BEGIN { associate_method process_accessors + _process_accessors install_accessors remove_accessors + + _new ); is_deeply( @@ -70,18 +71,19 @@ BEGIN { } my @attributes = ( - '$!name', - '$!accessor', - '$!reader', - '$!writer', - '$!predicate', - '$!clearer', - '$!builder', - '$!init_arg', - '$!initializer', - '$!default', - '$!associated_class', - '@!associated_methods', + 'name', + 'accessor', + 'reader', + 'writer', + 'predicate', + 'clearer', + 'builder', + 'init_arg', + 'initializer', + 'definition_context', + 'default', + 'associated_class', + 'associated_methods', ); is_deeply(