Answer the question
In order to leave comments, you need to log in
How to mimic the $_FILES array when testing with PHPUnit?
Good afternoon!
Please tell me how to simulate the $_FILES array for tests. You need to test a class that validates files uploaded via $_POST.
For validation, the Rakit\Validation\Validator library is used.
Answer the question
In order to leave comments, you need to log in
Do not use FILES, POST, etc., psr 7 was made specifically for this
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question