Expand tests, enable Infection again #26
Annotations
7 warnings
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Run infection tests:
src/Reader/KmlReader.php#L47
Escaped Mutant for Mutator "MethodCallRemoval":
@@ @@
$document = file_get_contents($fileName);
} elseif (true === $openResult) {
$document = $zip->getFromName('doc.kml');
- $zip->close();
+
if (false === $document) {
throw new InvalidArchiveException(sprintf('No KML file found in KMZ archive "%s"', $fileName));
}
|
Run infection tests:
src/Writer/KmlWriter.php#L54
Escaped Mutant for Mutator "FunctionCallRemoval":
@@ @@
$zip->close();
$zipContent = file_get_contents($tempFile);
assert(is_string($zipContent));
- unlink($tempFile);
+
return $zipContent;
}
public function streamKml(KmlDocument $document): void
|
Run infection tests:
src/Writer/KmlWriter.php#L66
Escaped Mutant for Mutator "FunctionCallRemoval":
@@ @@
/** @var resource $output */
$output = fopen('php://output', 'w');
$doc = $this->writeKml($document);
- header('Content-Type: application/vnd.google-earth.kml+xml');
+
header('Content-Disposition: attachment; filename="doc.kml"');
fprintf($output, '%s', $doc);
fclose($output);
|
Run infection tests:
src/Writer/KmlWriter.php#L67
Escaped Mutant for Mutator "FunctionCallRemoval":
@@ @@
$output = fopen('php://output', 'w');
$doc = $this->writeKml($document);
header('Content-Type: application/vnd.google-earth.kml+xml');
- header('Content-Disposition: attachment; filename="doc.kml"');
+
fprintf($output, '%s', $doc);
fclose($output);
}
|
Run infection tests:
src/Writer/KmlWriter.php#L80
Escaped Mutant for Mutator "FunctionCallRemoval":
@@ @@
/** @var resource $output */
$output = fopen('php://output', 'w');
$doc = $this->writeKmz($document);
- header('Content-Type: application/vnd.google-earth.kmz');
+
header('Content-Disposition: attachment; filename="doc.kmz"');
fprintf($output, '%s', $doc);
fclose($output);
}
}
|
Run infection tests:
src/Writer/KmlWriter.php#L81
Escaped Mutant for Mutator "FunctionCallRemoval":
@@ @@
$output = fopen('php://output', 'w');
$doc = $this->writeKmz($document);
header('Content-Type: application/vnd.google-earth.kmz');
- header('Content-Disposition: attachment; filename="doc.kmz"');
+
fprintf($output, '%s', $doc);
fclose($output);
}
}
|
Loading