DA:13,0
LF:4
LH:2
end_of_record
EOD;
expect($txt)->toBe($expected);
});
it("exports the coverage of a file with an extra line at the end", function () {
$path = 'spec' . DS . 'Fixture' . DS . 'Reporter' . DS . 'Coverage' . DS . 'ExtraEmptyLine.php';
$collector = new Collector(['driver' => $this->driver, 'path' => $path]);
$code = new ExtraEmptyLine();
$collector->start();
$code->shallNotPass();
$collector->stop();
$time = time();
$txt = Lcov::export(['collector' => $collector, 'base_path' => DS . 'home' . DS . 'crysalead' . DS . 'kahlan']);
$ds = DS;
$expected = <<<EOD
TN:
SF:/home/crysalead/kahlan/spec/Fixture/Reporter/Coverage/ExtraEmptyLine.php
1,shallNotPass
FNDA:1,shallNotPass
FNF:1
FNH:1
DA:8,1
DA:10,0
DA:12,1
DA:13,0
LF:4
LH:2
end_of_record