What exactly do you need to mock?
Do you need a file handle that can be read from and written to in tests? Try opening a scalar ref as a file handle.
Do you need to pass a file name that can be used in tests? Try File::Temp.
In reply to Re: Can Test::MockObject mock a file?
by tobyink
in thread Can Test::MockObject mock a file?
by Lady_Aleena
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |