From 0eeed1d3a5dc7907419a328c7a3fc3f2639a58ff Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Tue, 1 Sep 2015 08:48:27 +1000 Subject: [PATCH] In phpunit don't try to write to the source directory Change-Id: Id48feb0aa6a5dde10076809b58c03deaf07cf02e --- tests/phpunit/includes/upload/UploadStashTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/includes/upload/UploadStashTest.php b/tests/phpunit/includes/upload/UploadStashTest.php index d5d1188e7d..8f9eabe9f8 100644 --- a/tests/phpunit/includes/upload/UploadStashTest.php +++ b/tests/phpunit/includes/upload/UploadStashTest.php @@ -20,7 +20,7 @@ class UploadStashTest extends MediaWikiTestCase { parent::setUp(); // Setup a file for bug 29408 - $this->bug29408File = __DIR__ . '/bug29408'; + $this->bug29408File = wfTempDir() . '/bug29408'; file_put_contents( $this->bug29408File, "\x00" ); self::$users = array( -- 2.20.1