encapsulated-package-features
[gitmo/Class-MOP.git] / t / 010_self_introspection.t
index 685f924..5972bdb 100644 (file)
@@ -3,7 +3,7 @@
 use strict;
 use warnings;
 
-use Test::More tests => 169;
+use Test::More tests => 173;
 use Test::Exception;
 
 BEGIN {
@@ -34,7 +34,7 @@ my @class_mop_package_methods = qw(
 
     name
     
-    add_package_symbol get_package_symbol has_package_symbol remove_package_symbol    
+    add_package_symbol get_package_symbol has_package_symbol remove_package_symbol list_all_package_symbols    
 );
 
 my @class_mop_module_methods = qw(
@@ -61,7 +61,7 @@ my @class_mop_class_methods = qw(
     
     has_method get_method add_method remove_method alias_method
     get_method_list compute_all_applicable_methods 
-       find_all_methods_by_name find_next_method_by_name
+       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
 
@@ -217,7 +217,7 @@ is($class_mop_class_meta->get_attribute('%:attributes')->init_arg,
   '... Class::MOP::Class %:attributes\'s a init_arg is :attributes');   
   
 ok($class_mop_class_meta->get_attribute('%:attributes')->has_default, '... Class::MOP::Class %:attributes has a default');
-is_deeply($class_mop_class_meta->get_attribute('%:attributes')->default, 
+is_deeply($class_mop_class_meta->get_attribute('%:attributes')->default('Foo'), 
          {}, 
          '... Class::MOP::Class %:attributes\'s a default of {}');