Subject: | Test::Deep kills Test::Class |
The smallest test case I can manage:
package TestIt;
use Test::Deep;
use base 'Test::Class';
sub startup : Tests(startup => 1) {}
1;
Trying to compile that results in:
Invalid CODE attribute: Tests(startup => 1) at TestIt.pm line 9
BEGIN failed--compilation aborted at TestIt.pm line 9.
Removing Test::Deep fixes this. Curiously, suppressing the import with
"use Test::Deep ()" doesn't fix this.
$ uname -a
SunOS ioz-dev-pipsv3 5.10 Generic_125101-10 i86pc i386 i86pc
$ perl -v
This is perl, v5.8.8 built for i86pc-solaris-thread-multi
Digging in further, it looks like it's the 'require overload' line which
does it. Now I'm stumped.
Cheers,
Ovid