function Assert::assertFileExists
Asserts that a file exists.
Throws
25 calls to Assert::assertFileExists()
- Assert::assertFileEquals in vendor/
phpunit/ phpunit/ src/ Framework/ Assert.php - Asserts that the contents of one file is equal to the contents of another file.
- Assert::assertFileEqualsCanonicalizing in vendor/
phpunit/ phpunit/ src/ Framework/ Assert.php - Asserts that the contents of one file is equal to the contents of another file (canonicalizing).
- Assert::assertFileEqualsIgnoringCase in vendor/
phpunit/ phpunit/ src/ Framework/ Assert.php - Asserts that the contents of one file is equal to the contents of another file (ignoring case).
- Assert::assertFileIsNotReadable in vendor/
phpunit/ phpunit/ src/ Framework/ Assert.php - Asserts that a file exists and is not readable.
- Assert::assertFileIsNotWritable in vendor/
phpunit/ phpunit/ src/ Framework/ Assert.php - Asserts that a file exists and is not writable.
File
-
vendor/
phpunit/ phpunit/ src/ Framework/ Assert.php, line 776
Class
- Assert
- @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
Namespace
PHPUnit\FrameworkCode
public static final function assertFileExists(string $filename, string $message = '') : void {
static::assertThat($filename, new FileExists(), $message);
}