From f12b0f9aad9a0dcfa626b0d9678a6676b5b73ef6 Mon Sep 17 00:00:00 2001 From: Boone Gorges Date: Fri, 7 Nov 2014 01:36:05 +0000 Subject: [PATCH] Correct variable name in `WP_UnitTestCase::temp_filename()`. git-svn-id: https://develop.svn.wordpress.org/trunk@30268 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/includes/testcase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/includes/testcase.php b/tests/phpunit/includes/testcase.php index 39d97d06d3..c3ce418638 100644 --- a/tests/phpunit/includes/testcase.php +++ b/tests/phpunit/includes/testcase.php @@ -369,7 +369,7 @@ class WP_UnitTestCase extends PHPUnit_Framework_TestCase { if ( empty( $tmp_dir ) ) { $tmp_dir = '/tmp'; } - $tmp_dir = realpath( $dir ); + $tmp_dir = realpath( $tmp_dir ); return tempnam( $tmp_dir, 'wpunit' ); }