From 05c4ce6f0e5d702bd5e8446c27e8d680173f6de3 Mon Sep 17 00:00:00 2001 From: azjezz Date: Wed, 7 Oct 2020 07:38:22 +0100 Subject: [PATCH] [Env] ignore current_exec symlink coverage --- src/Psl/Env/current_exec.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Psl/Env/current_exec.php b/src/Psl/Env/current_exec.php index ac6f37ea..d012bfa2 100644 --- a/src/Psl/Env/current_exec.php +++ b/src/Psl/Env/current_exec.php @@ -18,10 +18,12 @@ function current_exec(): string { $executable = realpath((string) $_SERVER['SCRIPT_NAME']); + // @codeCoverageIgnoreStart if (is_link($executable)) { /** @var string $executable */ $executable = readlink($executable); } + // @codeCoverageIgnoreEnd return $executable; }