Skip to content

Commit

Permalink
try to log filename
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Mar 28, 2024
1 parent eccd5aa commit e81333f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion demos/init-app.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function typecastAttributeLoadField(Field $field, ?string $value)
]);
$app->title = 'Agile UI Demo v' . $app->version;

unset($_SERVER);
// unset($_SERVER);
unset($_GET);
unset($_POST);
unset($_FILES);
Expand Down
2 changes: 1 addition & 1 deletion src/Behat/JsCoverageContextTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function __destruct()
return;
}

$outputFile = __DIR__ . '/../../coverage/js/' . hash('sha256', microtime(true) . random_bytes(64)) . '.json';
$outputFile = __DIR__ . '/../../coverage/js/' . basename($_SERVER['SCRIPT_NAME'] ?? 'unknown', '.php') . '-' . hash('sha256', microtime(true) . random_bytes(64)) . '.json';
file_put_contents($outputFile, json_encode($this->jsCoverage, \JSON_THROW_ON_ERROR));
}

Expand Down

0 comments on commit e81333f

Please sign in to comment.