fromYaml($yaml)->getServerRequestValidator(); $psrRequest = (new ServerRequest('post', 'http://localhost:8000/api/v1/clam/scan')) ->withUploadedFiles( ServerRequest::normalizeFiles( [ 'upload' => [ new UploadedFile('body1', 5, 0, 'upload_1.txt', 'text/plain'), new UploadedFile('body2', 5, 0, 'upload_2.txt', 'text/plain'), ], ] ) ) ->withMethod('PUT') ->withHeader('Content-Type', 'multipart/form-data'); $validator->validate($psrRequest); $this->addToAssertionCount(1); } }