4 use Test::More tests => 6;
5 use Test::NoWarnings 1.04 ':early';
8 'Getopt::Long::Descriptive' => 0.01, # skip all if not installed
11 use_ok('MooseX::Getopt::GLD');
17 with 'MooseX::Getopt::GLD' => { getopt_conf => [ 'pass_through' ] };
20 metaclass => 'Getopt',
30 with 'MooseX::Getopt::GLD' => { getopt_conf => [ 'pass_through' ] };;
33 metaclass => 'Getopt',
39 local @ARGV = ('--foo=10', '--bar=42');
42 my $foo = Engine::Foo->new_with_options();
43 isa_ok($foo, 'Engine::Foo');
44 is($foo->foo, 10, '... got the right value (10)');
48 my $bar = Engine::Bar->new_with_options();
49 isa_ok($bar, 'Engine::Bar');
50 is($bar->bar, 42, '... got the right value (42)');