Extended Testing
Test
20 of 21 : [
PREV
] [
NEXT
]
Testing Your Mocking Functions
called()
$mock->called($name) ? 'true' : 'false';
checks whether the named method was called on the object
next_call()
my ($name, $args) = $mock->next_call();
clear()
$mock->clear();
clears the current history of calls
© 2004 Barbie
barbie@missbarbell.co.uk
Home
http://birmingham.pm.org/