use warnings tester with fewer dependencies, issues
[gitmo/MooseX-Getopt.git] / t / 103_uc_bug.t
CommitLineData
7b566394 1use strict;
aec09248 2use warnings FATAL => 'all';
7b566394 3
9fbb5be9 4use Test::More tests => 4;
25eb430d 5use Test::Warnings;
7b566394 6
7{
8 package App;
9 use Moose;
10 with qw(MooseX::Getopt);
11
12 has 'TrackingNumber' => (
13 is => 'rw',
14 isa => 'Str',
15 );
16
17 has 'otherparam' => (
18 is => 'rw',
19 isa => 'Str',
20 );
21}
22
23{
24 local @ARGV = ('--TrackingNumber','1Z1234567812345670','--otherparam','foo');
25
26 my $app = App->new_with_options;
27 isa_ok($app, 'App');
28 is($app->TrackingNumber, '1Z1234567812345670', '... TrackingNumber is as expected');
29 is($app->otherparam, 'foo', '... otherparam is as expected');
30}