Tests: Clean up the resulting /tmp/foo* files from the `tempnam` call.

git-svn-id: https://develop.svn.wordpress.org/trunk@31937 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dion Hulse 2015-03-31 02:10:52 +00:00
parent 842d6a9b39
commit 9ce354f534
1 changed files with 4 additions and 1 deletions

View File

@ -7,7 +7,10 @@ class Tests_File extends WP_UnitTestCase {
function setUp() {
parent::setUp();
$this->dir = dirname(tempnam('/tmp', 'foo'));
$file = tempnam( '/tmp', 'foo') ;
$this->dir = dirname( $file );
unlink( $file );
$this->badchars = '"\'[]*&?$';
}