public function TestFileTransfer::isFile in Drupal 10
Same name and namespace in other branches
- 8 core/modules/system/tests/src/Functional/FileTransfer/TestFileTransfer.php \Drupal\Tests\system\Functional\FileTransfer\TestFileTransfer::isFile()
- 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\FileTransferCode
public function isFile($path) {
return FALSE;
}