1 package ResultClassInflator;
3 sub new { bless {}, __PACKAGE__ }
12 use Test::More tests => 6;
17 my $schema = DBICTest->init_schema();
19 my $source = $schema->source('CD');
22 $source->result_class('ResultClassInflator');
23 is($source->result_class => 'ResultClassInflator', "result_class gives us back class");
24 is($source->get_component_class('result_class') => 'ResultClassInflator',
25 "and so does get_component_class");
27 } 'Result class still works with class';
29 my $obj = ResultClassInflator->new();
30 $source->result_class($obj);
31 is($source->result_class => $obj, "result_class gives us back obj");
32 is($source->get_component_class('result_class') => $obj, "and so does get_component_class");
33 } 'Result class works with object';