theclapp

Search theclapp.blog-city.com

 

slimpl debugger II

posted Thursday, 2-Mar-2006
Worked on the slimpl debugger some more. Burned 1.5-2 hours needlessly because the documentation of chromatic's Test::MockObject::Extends module led me to believe that I could use the "source" object and the "mocked" object independently. The documentation says:

use Some::Class;
use Test::MockObject::Extends;

my $object = Some::Class->new();
my $mock_object = Test::MockObject::Extends->new( $object );

$mock_object->set_true( 'parent_method' );

but it should really say something more like


my $object = Some::Class->new();
Test::MockObject::Extends->new( $object ); # $object modified in place

$object->set_true( 'parent_method' );

So I filed a bug. (Update 5 Mar '06: Chromatic fixed it.)

tags:        

links: digg this    del.icio.us    technorati    reddit