Skip Menu |

This queue is for tickets about the Test-Mock-Class CPAN distribution.

Report information
The Basics
Id: 62548
Status: new
Priority: 0/
Queue: Test-Mock-Class

People
Owner: Nobody in particular
Requestors: MITHALDU [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



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?