Index: tests/phpunit/tests/rest-api/rest-attachments-controller.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- tests/phpunit/tests/rest-api/rest-attachments-controller.php	(revision 6d02212d578815c1533a20c5bb5693231fb64d4e)
+++ tests/phpunit/tests/rest-api/rest-attachments-controller.php	(revision )
@@ -58,10 +58,10 @@
 		$role->add_cap( 'level_0' );
 
 		$orig_file = DIR_TESTDATA . '/images/canola.jpg';
-		$this->test_file = '/tmp/canola.jpg';
+		$this->test_file = sys_get_temp_dir() . '/canola.jpg';
 		copy( $orig_file, $this->test_file );
 		$orig_file2 = DIR_TESTDATA . '/images/codeispoetry.png';
-		$this->test_file2 = '/tmp/codeispoetry.png';
+		$this->test_file2 = sys_get_temp_dir() . '/codeispoetry.png';
 		copy( $orig_file2, $this->test_file2 );
 	}
 
Index: tests/phpunit/tests/customize/manager.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- tests/phpunit/tests/customize/manager.php	(revision 6d02212d578815c1533a20c5bb5693231fb64d4e)
+++ tests/phpunit/tests/customize/manager.php	(revision )
@@ -60,10 +60,10 @@
 		$this->undefined = new stdClass();
 
 		$orig_file = DIR_TESTDATA . '/images/canola.jpg';
-		$this->test_file = '/tmp/canola.jpg';
+		$this->test_file = sys_get_temp_dir() . '/canola.jpg';
 		copy( $orig_file, $this->test_file );
 		$orig_file2 = DIR_TESTDATA . '/images/waffles.jpg';
-		$this->test_file2 = '/tmp/waffles.jpg';
+		$this->test_file2 = sys_get_temp_dir() . '/waffles.jpg';
 		copy( $orig_file2, $this->test_file2 );
 	}
 
Index: tests/phpunit/tests/link/themeFile.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- tests/phpunit/tests/link/themeFile.php	(revision 6d02212d578815c1533a20c5bb5693231fb64d4e)
+++ tests/phpunit/tests/link/themeFile.php	(revision )
@@ -5,13 +5,28 @@
 class Test_Theme_File extends WP_UnitTestCase {
 
 	public static function wpSetUpBeforeClass( WP_UnitTest_Factory $factory ) {
-		symlink( DIR_TESTDATA . '/theme-file-parent', WP_CONTENT_DIR . '/themes/theme-file-parent' );
-		symlink( DIR_TESTDATA . '/theme-file-child', WP_CONTENT_DIR . '/themes/theme-file-child' );
+		
+		mkdir( WP_CONTENT_DIR . '/themes/theme-file-parent' );
+		copy( DIR_TESTDATA . '/theme-file-parent/parent-and-child.php', WP_CONTENT_DIR . '/themes/theme-file-parent/parent-and-child.php' );
+		copy( DIR_TESTDATA . '/theme-file-parent/parent-only.php', WP_CONTENT_DIR . '/themes/theme-file-parent/parent-only.php' );
+		copy( DIR_TESTDATA . '/theme-file-parent/style.css', WP_CONTENT_DIR . '/themes/theme-file-parent/style.css' );
+		
+		mkdir( WP_CONTENT_DIR . '/themes/theme-file-child' );
+		copy( DIR_TESTDATA . '/theme-file-child/parent-and-child.php', WP_CONTENT_DIR . '/themes/theme-file-child/parent-and-child.php' );
+		copy( DIR_TESTDATA . '/theme-file-child/child-only.php', WP_CONTENT_DIR . '/themes/theme-file-child/child-only.php' );
+		copy( DIR_TESTDATA . '/theme-file-child/style.css', WP_CONTENT_DIR . '/themes/theme-file-child/style.css' );
 	}
 
 	public static function wpTearDownAfterClass() {
-		unlink( WP_CONTENT_DIR . '/themes/theme-file-parent' );
-		unlink( WP_CONTENT_DIR . '/themes/theme-file-child' );
+		
+		unlink( WP_CONTENT_DIR . '/themes/theme-file-parent/parent-and-child.php' );
+		unlink( WP_CONTENT_DIR . '/themes/theme-file-parent/parent-only.php' );
+		unlink( WP_CONTENT_DIR . '/themes/theme-file-parent/style.css' );
+		rmdir( WP_CONTENT_DIR . '/themes/theme-file-parent' );
+		unlink( WP_CONTENT_DIR . '/themes/theme-file-child/parent-and-child.php' );
+		unlink( WP_CONTENT_DIR . '/themes/theme-file-child/child-only.php' );
+		unlink( WP_CONTENT_DIR . '/themes/theme-file-child/style.css' );
+		rmdir( WP_CONTENT_DIR . '/themes/theme-file-child' );
 	}
 
 	/**
Index: tests/phpunit/tests/file.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- tests/phpunit/tests/file.php	(revision 6d02212d578815c1533a20c5bb5693231fb64d4e)
+++ tests/phpunit/tests/file.php	(revision )
@@ -8,7 +8,7 @@
 	function setUp() {
 		parent::setUp();
 
-		$file = tempnam( '/tmp', 'foo') ;
+		$file = tempnam( sys_get_temp_dir(), 'foo') ;
 		$this->dir = dirname( $file );
 		unlink( $file );
 
Index: tests/phpunit/tests/widgets/media-image-widget.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- tests/phpunit/tests/widgets/media-image-widget.php	(revision 6d02212d578815c1533a20c5bb5693231fb64d4e)
+++ tests/phpunit/tests/widgets/media-image-widget.php	(revision )
@@ -311,7 +311,7 @@
 	function test_render_media() {
 		$widget = new WP_Widget_Media_Image();
 
-		$test_image = '/tmp/canola.jpg';
+		$test_image = sys_get_temp_dir() . '/canola.jpg';
 		copy( DIR_TESTDATA . '/images/canola.jpg', $test_image );
 		$attachment_id = self::factory()->attachment->create_object( array(
 			'file' => $test_image,
Index: tests/phpunit/tests/widgets/media-widget.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- tests/phpunit/tests/widgets/media-widget.php	(revision 6d02212d578815c1533a20c5bb5693231fb64d4e)
+++ tests/phpunit/tests/widgets/media-widget.php	(revision )
@@ -129,7 +129,7 @@
 	 */
 	function test_is_attachment_with_mime_type() {
 
-		$test_image = '/tmp/canola.jpg';
+		$test_image = sys_get_temp_dir() . '/canola.jpg';
 		copy( DIR_TESTDATA . '/images/canola.jpg', $test_image );
 		$attachment_id = self::factory()->attachment->create_object( array(
 			'file' => $test_image,
