#!/usr/bin/perl
-# This is automatically generated by author/import-moose-test.pl.
-# DO NOT EDIT THIS FILE. ANY CHANGES WILL BE LOST!!!
-use t::lib::MooseCompat;
use strict;
use warnings;
=cut
-use Test::Requires {
- 'Declare::Constraints::Simple' => '0.01', # skip all if not installed
-};
+BEGIN {
+ eval "use Declare::Constraints::Simple;";
+ plan skip_all => "Declare::Constraints::Simple is required for this test" if $@;
+ plan tests => 9;
+}
use Test::Exception;
$foo->baz({});
} '... validation failed correctly';
-done_testing;