diff --git a/src/Faker/Provider/File.php b/src/Faker/Provider/File.php index ac2ff2db..6462760e 100644 --- a/src/Faker/Provider/File.php +++ b/src/Faker/Provider/File.php @@ -569,7 +569,7 @@ class File extends \Faker\Provider\Base * @param boolean $fullPath Wether to have the full path or just the filename * @return string */ - public static function file($sourceDirectory, $targetDirectory, $fullPath = true) + public static function file($sourceDirectory = '/tmp', $targetDirectory = '/tmp', $fullPath = true) { if (!is_dir($sourceDirectory)) { throw new \InvalidArgumentException(sprintf('Source directory %s does not exist or is not a directory.', $sourceDirectory));