WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/31/2015 02:10:52 AM (6 years ago)
Author:
dd32
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/file.php

    r31936 r31937  
    88    function setUp() {
    99        parent::setUp();
    10         $this->dir = dirname(tempnam('/tmp', 'foo'));
     10
     11        $file = tempnam( '/tmp', 'foo') ;
     12        $this->dir = dirname( $file );
     13        unlink( $file );
    1114
    1215        $this->badchars = '"\'[]*&?$';
Note: See TracChangeset for help on using the changeset viewer.