Oops, needed that voodoo
[gitmo/Class-MOP.git] / t / 306_is_class_loaded.t
CommitLineData
89f74416 1use strict;
2use warnings;
89f74416 3
8db4963b 4use FindBin qw/$Bin/;
5use lib "$Bin/lib";
6
89f74416 7use Test::More tests => 1;
8use Class::MOP ();
9
10# Just defining this sub appears to shit in TestClassLoaded's symbol
11# tables (see the SCALAR package symbol you end up with).
12# This confuses the XS is_class_loaded method, which looks for _any_
13# symbol, not just code symbols of VERSION/AUTHORITY etc.
14
15sub fnar {
b39d2247 16 TestClassLoaded::this_method_does_not_even_exist();
89f74416 17}
18
19Class::MOP::load_class('TestClassLoaded');
20
21TODO: {
22 local $TODO = 'Borked';
b39d2247 23 ok(
24 TestClassLoaded->can('a_method'),
25 'TestClassLoader::a_method is defined'
26 );
89f74416 27}
28