Perl Monk, Perl Meditation | |
PerlMonks |
Test::MockObject not showing args when mocking a subby jvector (Friar) |
on May 27, 2009 at 14:08 UTC ( [id://766428]=perlquestion: print w/replies, xml ) | Need Help?? |
jvector has asked for the wisdom of the Perl Monks concerning the following question:
Monks, again I commit the sin of Not Understanding It.
I am working with code that talks to a serial port. followed by where
so to test it I put
So I would hope to see things like wrote ATZ\r to the serial port Instead I see wrote Test::MockObject=HASH(0x885d760) to the serial port The doc for Test::MockObject says
Clearly I get a helpful message showing me that the sub has been called. But I infer that the sub I provide in the mock ('write', ...) statement does not get the arguments that are provided to the write. Is there something I am missing?
Everybody knows signatures don't exist
Back to
Seekers of Perl Wisdom
|
|