Add a failing testcase for get_all_package_symbols and inlined constants.
[gitmo/Class-MOP.git] / t / 048_anon_class_create_init.t
CommitLineData
34d04967 1#!/usr/bin/perl
2
3use strict;
4use warnings;
5
6use Test::More tests => 2;
7
8use Class::MOP;
9
10{
11 package MyMeta;
12 use base 'Class::MOP::Class';
13 sub initialize {
14 my $class = shift;
15 my ( $package, %options ) = @_;
16 ::cmp_ok( $options{foo}, 'eq', 'this',
17 'option passed to initialize() on create_anon_class()' );
18 return $class->SUPER::initialize( @_ );
19 }
20
21}
22
23my $anon = MyMeta->create_anon_class( foo => 'this' );
24isa_ok( $anon, 'MyMeta' );
25