assertFile.php
Table of Contents
Functions
- assertFile() : void
- Asserts that a file exists and is accessible.
Functions
assertFile()
Asserts that a file exists and is accessible.
assertFile(string|null $file[, array<string|int, mixed>|null $expectedMimeTypes = null ][, bool $isReadable = true ][, bool $isWritable = false ]) : void
Parameters
- $file : string|null
-
The path of the file to check.
- $expectedMimeTypes : array<string|int, mixed>|null = null
- $isReadable : bool = true
-
Whether to assert that the directory is readable. Default: true.
- $isWritable : bool = false
-
Whether to assert that the directory is writable. Default: false.