-#!/usr/bin/perl
-
use strict;
-use warnings;
+use warnings FATAL => 'all';
-use Test::More tests => 9;
-use Test::Fatal;
+use Test::More tests => 10;
+use Test::Fatal 0.003;
+use Test::Warnings;
BEGIN {
use_ok('MooseX::Getopt');
with 'MooseX::Getopt';
has 'data' => (
- metaclass => 'Getopt',
+ traits => ['Getopt'],
is => 'ro',
isa => 'Str',
default => 'file.dat',
);
has 'cow' => (
- metaclass => 'Getopt',
+ traits => ['Getopt'],
is => 'ro',
isa => 'Str',
default => 'moo',
);
has 'horse' => (
- metaclass => 'Getopt',
+ traits => ['Getopt'],
is => 'ro',
isa => 'Str',
default => 'bray',
);
has 'private_stuff' => (
- metaclass => 'NoGetopt',
+ traits => ['NoGetopt'],
is => 'ro',
isa => 'Int',
default => 713
);
has '_private_stuff_cmdline' => (
- metaclass => 'Getopt',
+ traits => ['Getopt'],
is => 'ro',
isa => 'Int',
default => 832,
cmd_flag => 'p',
);
-
}
{