mirror of
https://github.com/Respect/Validation.git
synced 2026-03-15 06:45:44 +01:00
I'm creating a workaround here, which is not exactly happy with, but adding "uopz" as a dependency to run the tests make it harder for developers, including myself.
26 lines
499 B
PHP
26 lines
499 B
PHP
<?php
|
|
|
|
/*
|
|
* Copyright (c) Alexandre Gomes Gaigalas <alganet@gmail.com>
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
declare(strict_types=1);
|
|
|
|
require __DIR__ . '/../vendor/autoload.php';
|
|
|
|
$mockIsUploadedFileReturn = true;
|
|
|
|
function mock_is_uploaded_file(string $filename): bool
|
|
{
|
|
global $mockIsUploadedFileReturn;
|
|
|
|
return $mockIsUploadedFileReturn;
|
|
}
|
|
|
|
function set_mock_is_uploaded_file_return(bool $return): void
|
|
{
|
|
global $mockIsUploadedFileReturn;
|
|
|
|
$mockIsUploadedFileReturn = $return;
|
|
}
|