Subject: | incompatible with Test::MockObject (?!) q{Can't locate object method "new"} |
I have class files generated by wsdl2perl, which do not work if
'Test::MockObject' has been loaded. I'm afraid I'm not sure whether
SOAP::WSDL is doing naughty things, or whether it's Test::MockObject. I
suspect both.
The error generated is:
Can't locate object method "new" via package
"MyTypes::TableOfThingItems" at
/usr/lib/perl5/site_perl/5.10/SOAP/WSDL/XSD/Typelib/ComplexType.pm line 225.
As long as Test::MockObject is not loaded, the same classes work fine.
No calls need to be made to Test::MockObject, and Import does not need
to be called.
I have reproduced this with cygwin perl 5.10.0 and Activestate perl for
linux 5.10.0.