start and await_all working
[scpubgit/Object-Remote.git] / t / basic.t
CommitLineData
b63a955f 1use strictures 1;
2use Test::More;
3
4use Object::Remote::Connector::Local;
5use Object::Remote;
6
7$ENV{PERL5LIB} = join(
8 ':', ($ENV{PERL5LIB} ? $ENV{PERL5LIB} : ()), qw(lib t/lib)
9);
10
11my $connection = Object::Remote::Connector::Local->new->connect;
12
13#$Object::Remote::Connection::DEBUG = 1;
14
15my $proxy = Object::Remote->new(
16 connection => $connection,
17 class => 'ORTestClass'
18)->proxy;
19
20isnt($$, $proxy->pid, 'Different pid on the other side');
21
22is($proxy->counter, 0, 'Counter at 0');
23
24is($proxy->increment, 1, 'Increment to 1');
25
26is($proxy->counter, 1, 'Counter at 1');
27
28done_testing;