In phpunit don't try to write to the source directory
authorTim Starling <tstarling@wikimedia.org>
Mon, 31 Aug 2015 22:48:27 +0000 (08:48 +1000)
committerUmherirrender <umherirrender_de.wp@web.de>
Wed, 2 Sep 2015 19:09:40 +0000 (19:09 +0000)
Change-Id: Id48feb0aa6a5dde10076809b58c03deaf07cf02e

tests/phpunit/includes/upload/UploadStashTest.php

index d5d1188..8f9eabe 100644 (file)
@@ -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(