You are here

public function TestFileTransfer::isFile in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/system/tests/src/Functional/FileTransfer/TestFileTransfer.php \Drupal\Tests\system\Functional\FileTransfer\TestFileTransfer::isFile()
  2. 9 core/modules/system/tests/src/Functional/FileTransfer/TestFileTransfer.php \Drupal\Tests\system\Functional\FileTransfer\TestFileTransfer::isFile()

Checks if a particular path is a file (not a directory).

Parameters

string $path: The path to check.

Return value

bool TRUE if the specified path is a file, FALSE otherwise.

Overrides FileTransfer::isFile

File

core/modules/system/tests/src/Functional/FileTransfer/TestFileTransfer.php, line 72

Class

TestFileTransfer
Mock FileTransfer object for test case.

Namespace

Drupal\Tests\system\Functional\FileTransfer

Code

public function isFile($path) {
  return FALSE;
}