6 use Test::More tests => 5;
9 'Getopt::Long::Descriptive' => 0.01, # skip all if not installed
12 use_ok('MooseX::Getopt::GLD');
18 with 'MooseX::Getopt::GLD' => { getopt_conf => [ 'pass_through' ] };
21 metaclass => 'Getopt',
31 with 'MooseX::Getopt::GLD' => { getopt_conf => [ 'pass_through' ] };;
34 metaclass => 'Getopt',
40 local @ARGV = ('--foo=10', '--bar=42');
43 my $foo = Engine::Foo->new_with_options();
44 isa_ok($foo, 'Engine::Foo');
45 is($foo->foo, 10, '... got the right value (10)');
49 my $bar = Engine::Bar->new_with_options();
50 isa_ok($bar, 'Engine::Bar');
51 is($bar->bar, 42, '... got the right value (42)');