3 use Sys::Hostname qw(hostname);
5 use Object::Remote::Connector::Local;
9 ':', ($ENV{PERL5LIB} ? $ENV{PERL5LIB} : ()), qw(lib t/lib)
12 my $connection = Object::Remote::Connector::Local->new->connect;
14 #$Object::Remote::Connection::DEBUG = 1;
16 my $remote = Object::Remote->new(
17 connection => $connection,
18 class => 'ORTestClass'
21 isnt($$, $remote->pid, 'Different pid on the other side');
23 is($remote->counter, 0, 'Counter at 0');
25 is($remote->increment, 1, 'Increment to 1');
27 is($remote->counter, 1, 'Counter at 1');
31 is($remote->call_callback(27, sub { $x++ }), 27, "Callback ok");
33 is($x, 1, "Callback called callback");
36 $connection->get_remote_sub('Sys::Hostname::hostname')->(),