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:
parent
842d6a9b39
commit
9ce354f534
@ -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 = '"\'[]*&?$';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user