Method |
Description |
|
__construct ( object $caller, string $sourcePath ) |
$caller must be a subclass of PHPUnit_Framework_TestCase. |
|
getTemporaryDirectory ( ) |
Returns the path of the temporary directory. |
|
setTemporaryDirectory ( $dir ) |
Sets the temprary directory where this object puts temprary files into. |
|
withFile ( string $destFileName, callable $callback ) |
Calls the callback function after creating a temporary file, which
is a copy of the source file. The copy is automatically removed, so
you don't have to delete it. |
|