5 use Test::More tests => 7;
11 my $db = DBM::Deep->new( 't/test.db' );
15 package My::Tie::Hash;
26 tie %hash, 'My::Tie::Hash';
27 isa_ok( tied(%hash), 'My::Tie::Hash' );
31 } qr/Cannot store a tied value/, "Cannot store tied hashes";
36 package My::Tie::Array;
49 tie @array, 'My::Tie::Array';
50 isa_ok( tied(@array), 'My::Tie::Array' );
54 } qr/Cannot store a tied value/, "Cannot store tied arrays";
58 package My::Tie::Scalar;
69 tie $scalar, 'My::Tie::Scalar';
70 isa_ok( tied($scalar), 'My::Tie::Scalar' );
73 $db->{foo} = \$scalar;
74 } qr/Storage of variables of type 'SCALAR' is not supported/, "Cannot store scalar references, let alone tied scalars";