X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=scpubgit%2FObject-Remote.git;a=blobdiff_plain;f=t%2Fbasic.t;h=07d77efdf55d76cf60ae5f3901fb0fc242095de0;hp=77f0c69da312a1d8ac902a4f85b643b2a4ab3cfe;hb=676438a11cbf6bd49102369824c9d87f70964fd3;hpb=3f1f1e662b0737ba6225973b88f2d78dd2344314 diff --git a/t/basic.t b/t/basic.t index 77f0c69..07d77ef 100644 --- a/t/basic.t +++ b/t/basic.t @@ -12,17 +12,17 @@ my $connection = Object::Remote::Connector::Local->new->connect; #$Object::Remote::Connection::DEBUG = 1; -my $proxy = Object::Remote->new( +my $remote = Object::Remote->new( connection => $connection, class => 'ORTestClass' -)->proxy; +); -isnt($$, $proxy->pid, 'Different pid on the other side'); +isnt($$, $remote->pid, 'Different pid on the other side'); -is($proxy->counter, 0, 'Counter at 0'); +is($remote->counter, 0, 'Counter at 0'); -is($proxy->increment, 1, 'Increment to 1'); +is($remote->increment, 1, 'Increment to 1'); -is($proxy->counter, 1, 'Counter at 1'); +is($remote->counter, 1, 'Counter at 1'); done_testing;