mirror of
https://github.com/pestphp/pest.git
synced 2026-09-05 14:23:34 +02:00
Check for pcov being enabled for tia (#1779)
* Check for pcov being enabled for tia * Delete tests/Features/TiaDriverGate.php Signed-off-by: nuno maduro <enunomaduro@gmail.com> --------- Signed-off-by: nuno maduro <enunomaduro@gmail.com> Co-authored-by: Ohffs <ohffsnotnow@gmail.com> Co-authored-by: nuno maduro <enunomaduro@gmail.com>
This commit is contained in:
@@ -68,7 +68,7 @@ final class Recorder
|
||||
public function driverAvailable(): bool
|
||||
{
|
||||
if (! $this->driverChecked) {
|
||||
if (function_exists('pcov\\start')) {
|
||||
if (function_exists('pcov\\start') && filter_var((string) ini_get('pcov.enabled'), FILTER_VALIDATE_BOOL)) {
|
||||
$this->driver = 'pcov';
|
||||
$this->driverAvailable = true;
|
||||
} elseif (function_exists('xdebug_start_code_coverage') && function_exists('xdebug_info')) {
|
||||
|
||||
Reference in New Issue
Block a user