use Test::Base tests => 2;
filters {
foo => 'upper',
bar => 'lower',
};
run_is 'foo', 'upper';
run_is 'bar', 'lower';
sub upper { uc(shift) }
sub Test::Base::Filter::lower { shift; lc(shift) }
__END__
===
--- foo
So long, and thanks for all the fish!
--- bar
So long, and thanks for all the fish!
--- upper
SO LONG, AND THANKS FOR ALL THE FISH!
--- lower
so long, and thanks for all the fish!