<?php require '../vendor/autoload.php';

use Intellex\Curly\Content\TypeHandlers\MultipartFormData;

$cases = [
	[ '------TestingBoundarySDJd12jd12as8
Content-Disposition: form-data; name="hello[]"

yes
------TestingBoundarySDJd12jd12as8
Content-Disposition: form-data; name="hello[]"

more
------TestingBoundarySDJd12jd12as8
Content-Disposition: form-data; name="kitty"

123
------TestingBoundarySDJd12jd12as8--
', [ 'hello' => [ 'yes', 'more' ], 'kitty' => '123' ] ],

];

test($cases, function($input) { return (new MultipartFormData('multipart/form-data; boundary=------TestingBoundarySDJd12jd12as8'))->parse($input); });
