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' ); }