diff --git a/tests/unit/Validation/Validator/FileTest.php b/tests/unit/Validation/Validator/FileTest.php index b7173f2dab7..83078fc885d 100644 --- a/tests/unit/Validation/Validator/FileTest.php +++ b/tests/unit/Validation/Validator/FileTest.php @@ -34,6 +34,9 @@ class FileTest extends UnitTest */ public function testSingleField() { + $_SERVER['REQUEST_METHOD'] = 'POST'; + $_SERVER['CONTENT_LENGTH'] = 1024; + $this->specify( 'Test file validator.', function () {