adding the methods attribute
[gitmo/Class-MOP.git] / t / 010_self_introspection.t
index 437e73f..b102c2d 100644 (file)
@@ -3,7 +3,7 @@
 use strict;
 use warnings;
 
-use Test::More tests => 179;
+use Test::More tests => 189;
 use Test::Exception;
 
 BEGIN {
@@ -35,7 +35,8 @@ my @class_mop_package_methods = qw(
     name
     namespace
     
-    add_package_symbol get_package_symbol has_package_symbol remove_package_symbol list_all_package_symbols    
+    add_package_symbol get_package_symbol has_package_symbol remove_package_symbol 
+    list_all_package_symbols remove_package_glob
     
     _deconstruct_variable_name
 );
@@ -43,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
@@ -63,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
@@ -138,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', 
@@ -275,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 ]');