function file_save_data in OpenID Connect / OAuth client 8
Same name and namespace in other branches
- 2.x tests/src/Unit/UserPasswordFixture.php \file_save_data()
Mock of the file_save_data function.
Parameters
string $data: The data to save.
string|null $destination: The destination to save.
int $replace: Whether to replace the file or not.
Return value
\PHPUnit\Framework\MockObject\MockObject Return a mock object that mimics the file_save_data.
1 call to file_save_data()
- OpenIDConnect::saveUserinfo in src/
OpenIDConnect.php - Save user profile information into a user account.
File
- tests/
src/ Unit/ UserPasswordFixture.php, line 45 - UserPasswordFixture.php
Code
function file_save_data($data, $destination = NULL, $replace = FileSystemInterface::EXISTS_RENAME) : MockObject {
return $GLOBALS['oldFileMock'];
}