adding the methods attribute
[gitmo/Class-MOP.git] / t / 010_self_introspection.t
index ee87164..b102c2d 100644 (file)
@@ -3,7 +3,7 @@
 use strict;
 use warnings;
 
-use Test::More tests => 181;
+use Test::More tests => 189;
 use Test::Exception;
 
 BEGIN {
@@ -44,15 +44,15 @@ my @class_mop_package_methods = qw(
 my @class_mop_module_methods = qw(
     meta 
 
-    version
+    version authority identifier
 );
 
 my @class_mop_class_methods = qw(
     meta
     
-    get_all_metaclasses get_all_metaclass_names get_all_metaclass_instances 
+    initialize reinitialize create 
     
-    initialize reinitialize create create_anon_class
+    create_anon_class is_anon_class
     
     instance_metaclass get_meta_instance
     new_object clone_object
@@ -64,7 +64,7 @@ my @class_mop_class_methods = qw(
     superclasses class_precedence_list
     
     has_method get_method add_method remove_method alias_method
-    get_method_list compute_all_applicable_methods 
+    get_method_list get_method_map compute_all_applicable_methods 
        find_method_by_name find_all_methods_by_name find_next_method_by_name
     
        add_before_method_modifier add_after_method_modifier add_around_method_modifier
@@ -139,9 +139,11 @@ my @class_mop_package_attributes = (
 );
 
 my @class_mop_module_attributes = (
+    '$:version', '$:authority'
 );
 
 my @class_mop_class_attributes = (
+    '%:methods', 
     '%:attributes', 
     '$:attribute_metaclass', 
     '$:method_metaclass', 
@@ -276,7 +278,8 @@ is_deeply(
     [ qw/
         Class::MOP::Class
         Class::MOP::Module
-        Class::MOP::Package                
+        Class::MOP::Package     
+        Class::MOP::Object           
     / ], 
     '... Class::MOP::Class->class_precedence_list == [ Class::MOP::Class Class::MOP::Module Class::MOP::Package ]');