4 if ( $ENV{PERL_CORE} ) {
6 @INC = ( '../lib', 'lib' );
14 use vars qw(%INIT %CUSTOM);
16 use Test::More tests => 11;
17 use File::Spec::Functions qw( catfile );
21 use_ok('MyPerlSource');
23 use_ok('MyIteratorFactory');
24 use_ok('MyResultFactory');
26 my $t_dir = $ENV{PERL_CORE} ? 'lib' : 't';
27 my $source = catfile( $t_dir, 'source_tests', 'source' );
29 source_class => 'MySource',
30 perl_source_class => 'MyPerlSource',
31 grammar_class => 'MyGrammar',
32 iterator_factory_class => 'MyIteratorFactory',
33 result_factory_class => 'MyResultFactory',
35 my $p = TAP::Parser->new(
40 ok( $p, 'new customized parser' );
42 foreach my $key ( keys %customize ) {
43 is( $p->$key(), $customize{$key}, "customized $key" );
46 # TODO: make sure these things are propogated down through the parser...