9 my $schema = DBICTest->init_schema();
10 my $storage = $schema->storage;
13 my $test_func = sub { @args = @_ };
15 $storage->dbh_do($test_func, "foo", "bar");
18 [ $storage, $storage->dbh, "foo", "bar" ],
22 my $storage_class = ref $storage;
25 local *{$storage_class .'::__test_method'} = $test_func;
26 $storage->dbh_do("__test_method", "baz", "buz");
31 [ $storage, $storage->dbh, "baz", "buz" ],
36 $storage->dbh_do (sub { $_[2] = 'changed' }, $res);
38 is ($res, 'changed', "Arguments properly aliased for dbh_do");