NAME

Test::Approvals::Reporters::FirstWorkingReporter - Report using the first reporter that appears to be working in the test environment.

SYNOPSIS

use Test::Approvals::Reporters;

my @reporters = (
    Test::Approvals::Reporters::BeyondCompareReporter->new(),
    Test::Approvals::Reporters::CodeCompareReporter->new(),
);

my $reporter = Test::Approvals::Reporters::FirstWorkingReporter->new(
    reporters => \@reporters
);

my $received = 'test.received.txt';
my $approved = 'test.approved.txt';
$reporter->report($received, $approved);