5 use Scalar::Util 'weaken';
6 use Object::Remote::FromData;
10 my $conn = Object::Remote->connect( '-' );
11 $conn_ref = \( $conn->{send_to_fh} );
13 is My::TestClass->new::on( $conn )->run, 3, "correct output";
16 is $$conn_ref, undef, "filehandle to ssh's STDIN is garbage-collected";
22 package My::TestClass;