Allow metaclasses to be reinitialized from an existing metaclass, instead of only...
[gitmo/Class-MOP.git] / t / 014_attribute_introspection.t
index f9c8bb1..34b09cc 100644 (file)
@@ -1,14 +1,10 @@
-#!/usr/bin/perl
-
 use strict;
 use warnings;
 
-use Test::More tests => 63;
+use Test::More tests => 69;
 use Test::Exception;
 
-BEGIN {
-    use_ok('Class::MOP');
-}
+use Class::MOP;
 
 {
     my $attr = Class::MOP::Attribute->new('$test');
@@ -38,6 +34,9 @@ BEGIN {
         has_init_arg      init_arg
         has_default       default           is_default_a_coderef
         has_initializer   initializer
+        has_insertion_order insertion_order _set_insertion_order
+
+        definition_context
 
         slots
         get_value
@@ -56,6 +55,7 @@ BEGIN {
         associate_method
 
         process_accessors
+        _process_accessors
         install_accessors
         remove_accessors
 
@@ -81,9 +81,11 @@ BEGIN {
         'builder',
         'init_arg',
         'initializer',
+        'definition_context',
         'default',
         'associated_class',
         'associated_methods',
+        'insertion_order',
     );
 
     is_deeply(