Browse Source

minor #5554 DX: use tmp file in sys_temp_dir for integration tests (keradus)

This PR was squashed before being merged into the 2.18 branch.

Discussion
----------

DX: use tmp file in sys_temp_dir for integration tests

Commits
-------

860747f13 DX: use tmp file in sys_temp_dir for integration tests
Dariusz Ruminski 3 years ago
parent
commit
cbde9be1d0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/IntegrationTest.php

+ 1 - 1
tests/IntegrationTest.php

@@ -41,7 +41,7 @@ final class IntegrationTest extends AbstractIntegrationTestCase
      */
     protected static function getTempFile()
     {
-        return self::getFixturesDir().\DIRECTORY_SEPARATOR.'.tmp.php';
+        return tempnam(sys_get_temp_dir(), 'PHP-CS-Fixer');
     }
 
     /**