thrownewFileExistsException("File '$original_source' could not be copied because a file by that name already exists in the destination directory ('$destination').");
thrownewFileExistsException("File '$original_source' could not be copied because a file by that name already exists in the destination directory ('$original_destination').");
}
// Assert that the source and destination filenames are not the same.
$this->expectExceptionMessageIs("File 'public://test.txt' could not be copied because a file by that name already exists in the destination directory ('').");
$this->expectExceptionMessageIs("File 'public://test.txt' could not be copied because a file by that name already exists in the destination directory ('public://test.txt').");