FileFactory
class FileFactory
Methods
create(string $name, string|int $kilobytes = 0, string|null $mimeType = null)
Create a new fake file.
createWithContent(string $name, string $content)
Create a new fake file with content.
mixed
generateImage(int $width, int $height, string $extension)
Generate a dummy image of the given width and height.
Details
at line 14
File
create(string $name, string|int $kilobytes = 0, string|null $mimeType = null)
Create a new fake file.
at line 29
File
createWithContent(string $name, string $content)
Create a new fake file with content.
at line 45
File
image(string $name, int $width = 10, int $height = 10)
Create a new fake image.
at line 61
protected mixed
generateImage(int $width, int $height, string $extension)
Generate a dummy image of the given width and height.