Hmm, the same warnings as Moose seems difficult.
[gitmo/Mouse.git] / t / 200_examples / 004_example_w_DCS.t
index 1ec0149..58cd3e7 100644 (file)
@@ -1,7 +1,4 @@
 #!/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;
@@ -17,9 +14,11 @@ Pretty well if I do say so myself :)
 
 =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;
 
@@ -92,4 +91,3 @@ dies_ok {
     $foo->baz({});
 } '... validation failed correctly';
 
-done_testing;