Subject: | mock classes are not registered in %INC |
Hi, i want to use TMC to override Net::FTP in my tests with a mock
class.
I tried this by way of:
require Net::FTP::Mock;
my $class = mock_class 'Net::FTP::Mock' => 'Net::FTP';
my $net_ftp_mock = Net::FTP->new;
However when later in the code this happens:
use Net::FTP;
$net_ftp = Net::FTP->new;
The mock class is overriden, since it is not registered in %INC.
Can you please amend your API to enable this?