respect-validation/tests/bootstrap.php
Henrique Moody acf791cc9e
Remove "uopz" as a dependency to run tests
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.
2025-12-18 14:13:09 +01:00

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;
}