use warnings FATAL => 'all';
use Test::More tests => 2;
-use Test::NoWarnings 1.04 ':early';
+use Test::Warnings;
BEGIN {
use_ok('MooseX::Getopt');
use Test::More tests => 70;
use Test::Moose;
-use Test::NoWarnings 1.04 ':early';
+use Test::Warnings;
BEGIN {
use_ok('MooseX::Getopt');
use warnings FATAL => 'all';
use Test::More tests => 7;
-use Test::NoWarnings 1.04 ':early';
+use Test::Warnings;
use Test::Fatal;
BEGIN {
use warnings FATAL => 'all';
use Test::More tests => 6;
-use Test::NoWarnings 1.04 ':early';
+use Test::Warnings;
BEGIN {
use_ok('MooseX::Getopt');
use Test::More tests => 10;
use Test::Fatal 0.003;
-use Test::NoWarnings 1.04 ':early';
+use Test::Warnings;
BEGIN {
use_ok('MooseX::Getopt');
use Test::More tests => 11;
use Test::Fatal;
-use Test::NoWarnings 1.04 ':early';
+use Test::Warnings;
BEGIN {
use_ok('MooseX::Getopt');
use Test::More tests => 70;
use Test::Moose;
-use Test::NoWarnings 1.04 ':early';
+use Test::Warnings;
BEGIN {
use_ok('MooseX::Getopt');
use Test::More tests => 10;
use Test::Fatal;
-use Test::NoWarnings 1.04 ':early';
+use Test::Warnings;
BEGIN {
use_ok('MooseX::Getopt');
use Test::Deep '!blessed';
use Path::Tiny 0.009;
use Scalar::Util 'blessed';
-use Test::NoWarnings 1.04 ':early';
+use Test::Warnings;
my %constructor_args;
{
use Test::More tests => 6;
use Test::Fatal;
-use Test::NoWarnings 1.04 ':early';
+use Test::Warnings;
use Getopt::Long::Descriptive;
use Test::More tests => 8;
use Test::Fatal;
-use Test::NoWarnings 1.04 ':early';
+use Test::Warnings;
BEGIN {
use Test::More tests => 7;
use Test::Fatal 0.003;
-use Test::NoWarnings 1.04 ':early';
+use Test::Warnings;
{
package Testing::Foo;
use warnings FATAL => 'all';
use Test::More tests => 6;
-use Test::NoWarnings 1.04 ':early';
+use Test::Warnings;
use Getopt::Long::Descriptive;
use warnings FATAL => 'all';
use Test::More tests => 4;
-use Test::NoWarnings 1.04 ':early';
+use Test::Warnings;
use MooseX::Getopt;
use Test::More tests => 70;
use Test::Moose;
-use Test::NoWarnings 1.04 ':early';
+use Test::Warnings;
BEGIN {
use_ok('MooseX::Getopt::Basic');
use warnings FATAL => 'all';
use Test::More tests => 4;
-use Test::NoWarnings 1.04 ':early';
+use Test::Warnings;
{
package App;
use Test::More tests => 7;
use Test::Trap;
-use Test::NoWarnings 1.04 ':early';
+use Test::Warnings;
{
package MyScript;
use warnings FATAL => 'all';
use Test::More tests => 13;
-use Test::NoWarnings 1.04 ':early';
+use Test::Warnings;
use Moose ();
use Moose::Meta::Class;
use warnings FATAL => 'all';
use Test::More tests => 22;
-use Test::NoWarnings 1.04 ':early';
+use Test::Warnings;
use Moose ();
use Moose::Meta::Class;
use Test::Warn 0.21;
use Test::Fatal 0.003;
-use Test::NoWarnings 1.04 ':early';
+use Test::Warnings;
my $fail_on_exit = 1;
{
use warnings FATAL => 'all';
use Test::More tests => 6;
-use Test::NoWarnings 1.04 ':early';
+use Test::Warnings;
{
package example;
# This tests the fix (that fulfills the documentation claim).
-use strict; use warnings FATAL => 'all';
+use strict;
+use warnings FATAL => 'all';
use Test::More tests => 4;
-use Test::NoWarnings 1.04 ':early';
+use Test::Warnings;
{
package MyClass;
# Update: since 0.41, usage info is printed to stdout, not stderr.
-use strict; use warnings FATAL => 'all';
+use strict;
+use warnings FATAL => 'all';
use Test::More tests => 23;
-use Test::NoWarnings 1.04 ':early';
+use Test::Warnings;
use Test::Trap;
{
# early), followed by options added by parent classes and roles, and then
# options added by this class.
-use strict; use warnings FATAL => 'all';
+use strict;
+use warnings FATAL => 'all';
use Test::More tests => 2;
-use Test::NoWarnings 1.04 ':early';
+use Test::Warnings;
{
package MyClass;
use warnings FATAL => 'all';
use Test::More tests => 6;
-use Test::NoWarnings 1.04 ':early';
+use Test::Warnings;
use Getopt::Long::Descriptive;
use Test::Requires 'MooseX::SimpleConfig'; # skip all if not installed
use Test::More tests => 3;
-use Test::NoWarnings 1.04 ':early';
+use Test::Warnings;
use Path::Tiny 0.009;
# avoid warning if all we have installed is YAML or YAML::Syck - the user will