use strict;
use warnings;
-use Test::More tests => 33;
+use Test::More tests => 34;
use Test::Exception;
require Class::MOP;
qr/Missing right curly/;
throws_ok {
+ delete $INC{'SyntaxError.pm'};
+ Class::MOP::load_first_existing_class(
+ 'FakeClassOhNo', 'SyntaxError', 'Class'
+ );
+}
+qr/Missing right curly/,
+ 'load_first_existing_class does not pass over an existing (bad) module';
+
+throws_ok {
Class::MOP::load_class('This::Does::Not::Exist');
}
qr/Could not load class \(This::Does::Not::Exist\) because :/,