3 use Sys::Hostname qw(hostname);
8 ':', ($ENV{PERL5LIB} ? $ENV{PERL5LIB} : ()), qw(lib t/lib)
11 my $connection = Object::Remote->connect('-');
13 #$Object::Remote::Connection::DEBUG = 1;
15 my $remote = ORTestClass->new::on($connection);
17 isnt($$, $remote->pid, 'Different pid on the other side');
19 is($remote->counter, 0, 'Counter at 0');
21 is($remote->increment, 1, 'Increment to 1');
23 is($remote->counter, 1, 'Counter at 1');
27 is($remote->call_callback(27, sub { $x++ }), 27, "Callback ok");
29 is($x, 1, "Callback called callback");
32 Sys::Hostname->can::on($connection, 'hostname')->(),