Extended Testing Test 19 of 21 : [PREV] [NEXT]

Other Setup Mocking Functions

$mock->fake_module('MyClass', 'MyModule' ... );
$mock->fake_new('MyClass');

$mock->set_always('my_this',24);
is( $mock->my_this(), 24 );

$mock->set_true('my_true' ... );
$mock->set_false('my_false' ... )
ok( $mock->my_true() );
ok( !$mock->my_false() );

$mock->set_list('my_list', 'this', 'that', 'other' ... );
$mock->set_series('my_series', 'this', 'that', 'other' ... );

© 2004 Barbie barbie@missbarbell.co.uk Home http://birmingham.pm.org/