4 use Test::More tests => 6;
5 use Test::NoWarnings 1.04 ':early';
7 use Getopt::Long::Descriptive;
9 use_ok('MooseX::Getopt::GLD');
15 with 'MooseX::Getopt::GLD' => { getopt_conf => [ 'pass_through' ] };
27 with 'MooseX::Getopt::GLD' => { getopt_conf => [ 'pass_through' ] };;
35 local @ARGV = ('--foo=10', '--bar=42');
38 my $foo = Engine::Foo->new_with_options();
39 isa_ok($foo, 'Engine::Foo');
40 is($foo->foo, 10, '... got the right value (10)');
44 my $bar = Engine::Bar->new_with_options();
45 isa_ok($bar, 'Engine::Bar');
46 is($bar->bar, 42, '... got the right value (42)');