4 use Test::More tests => 5;
7 'Getopt::Long::Descriptive' => 0.01, # skip all if not installed
10 use_ok('MooseX::Getopt::GLD');
16 with 'MooseX::Getopt::GLD' => { getopt_conf => [ 'pass_through' ] };
19 metaclass => 'Getopt',
29 with 'MooseX::Getopt::GLD' => { getopt_conf => [ 'pass_through' ] };;
32 metaclass => 'Getopt',
38 local @ARGV = ('--foo=10', '--bar=42');
41 my $foo = Engine::Foo->new_with_options();
42 isa_ok($foo, 'Engine::Foo');
43 is($foo->foo, 10, '... got the right value (10)');
47 my $bar = Engine::Bar->new_with_options();
48 isa_ok($bar, 'Engine::Bar');
49 is($bar->bar, 42, '... got the right value (42)');