use strict;
use warnings;
+use Test::More;
+
+BEGIN {
+ plan skip_all =>
+ "This test requires Class::Method::Modifiers or Class::Method::Modifiers::Fast"
+ unless eval {
+ require Class::Method::Modifiers::Fast;
+ } or eval {
+ require Class::Method::Modifiers;
+ };
+}
# functions to capture the output of the tutorial
our $DUMMY_STDOUT = "";
######################################################################
# Now the tests
package main;
-use Test::More tests => 5;
+plan tests => 5;
#use Horse;
my $talking = Horse->new(name => 'Mr. Ed');
use strict;
use warnings;
+use Test::More;
+BEGIN {
+ plan skip_all =>
+ "This test requires Class::Method::Modifiers or Class::Method::Modifiers::Fast"
+ unless eval {
+ require Class::Method::Modifiers::Fast;
+ } or eval {
+ require Class::Method::Modifiers;
+ };
+}
-use Test::More tests => 86;
+plan tests => 86;
use Test::Exception;
{
#!/usr/bin/env perl
use strict;
use warnings;
-use Test::More tests => 6;
+use Test::More;
+BEGIN {
+ plan skip_all =>
+ "This test requires Class::Method::Modifiers or Class::Method::Modifiers::Fast"
+ unless eval {
+ require Class::Method::Modifiers::Fast;
+ } or eval {
+ require Class::Method::Modifiers;
+ };
+}
+
+plan tests => 6;
+
# this test script ensures that my idiom of:
# role: sub BUILD, after BUILD