Unverified Commit 77dab4c8 authored by Guilherme Blanco's avatar Guilherme Blanco Committed by GitHub

Update tests/Functional/ExceptionTest.php

Co-authored-by: 's avatarGabriel Caruso <carusogabriel34@gmail.com>
parent 50679cda
...@@ -301,7 +301,7 @@ class ExceptionTest extends FunctionalTestCase ...@@ -301,7 +301,7 @@ class ExceptionTest extends FunctionalTestCase
} }
// mode 0 is considered read-only on Windows // mode 0 is considered read-only on Windows
$mode = in_array(PHP_OS, ['Linux', 'Darwin']) ? 0444 : 0000; $mode = PHP_OS_FAMILY !== 'Windows' ? 0444 : 0000;
$filename = sprintf('%s/%s', sys_get_temp_dir(), 'doctrine_failed_connection_' . $mode . '.db'); $filename = sprintf('%s/%s', sys_get_temp_dir(), 'doctrine_failed_connection_' . $mode . '.db');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment