from => "XML-SQLFairy",
filename => "$Bin/data/xml/schema-basic.xml",
to => "Producer::BaseTest::produce",
- producer_args => {
- ttfile => "$Bin/data/template/basic.tt",
- },
);
my $out;
lives_ok { $out = $obj->translate; } "Translate ran";
# Make sure we use our new class as the producer
sub produce { return __PACKAGE__->new( translator => shift )->run; };
-sub tt_schema { local $/ = undef; \<DATA>; }
+# Note: we don't need to impliment tt_schema as the default will use the DATA
+# section by default.
sub tt_vars { ( foo => "bar" ); }