3 use Test::More tests => 3;
5 require_ok("Class::Accessor");
7 @Foo::ISA = qw(Class::Accessor);
8 Foo->mk_accessors(qw( foo ));
10 my $test = Foo->new({ foo => 49 });
12 is $test->get('foo'), 49, "get initial foo";
13 $test->set('foo', 42);
14 is $test->get('foo'), 42, "get new foo";