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' ] };
29 with 'MooseX::Getopt::GLD' => { getopt_conf => [ 'pass_through' ] };;
37 local @ARGV = ('--foo=10', '--bar=42');
40 my $foo = Engine::Foo->new_with_options();
41 isa_ok($foo, 'Engine::Foo');
42 is($foo->foo, 10, '... got the right value (10)');
46 my $bar = Engine::Bar->new_with_options();
47 isa_ok($bar, 'Engine::Bar');
48 is($bar->bar, 42, '... got the right value (42)');