| 1 | package TAP::Harness::MultipleConfig; | ||
| 2 | use strict; | ||
| 3 | use warnings; | ||
| 4 | |||
| 5 | use parent 'TAP::Harness'; | ||
| 6 | |||
| 7 | use ConfigCache; | ||
| 8 | |||
| 9 | sub new { | ||
| 10 | my ($self, $params) = @_; | ||
| 11 | $params->{callbacks} = +{ | ||
| 12 | after_test => sub { | ||
| 13 | my ($filenames) = @_; | ||
| 14 | my $config = ConfigCache->get_config_by_filename($filenames->[0]); | ||
| 15 | ConfigCache->push_configs($config); | ||
| 16 | }, | ||
| 17 | }; | ||
| 18 | $self->SUPER::new($params); | ||
| 19 | } | ||
| 20 | |||
| 21 | 1; | ||
| 22 | |||
| 23 | __END__ |