$this->
assertEquals('az09!#$%&\'*.^_`|~-', HeaderUtils::
unquote('az09!#$%&\'*.^_`|~-'
));
$this->
assertEquals('foo bar', HeaderUtils::
unquote('"foo bar"'
));
$this->
assertEquals('foo [bar]', HeaderUtils::
unquote('"foo [bar]"'
));
$this->
assertEquals('foo "bar"', HeaderUtils::
unquote('"foo \"bar\""'
));
$this->
assertEquals('foo "bar"', HeaderUtils::
unquote('"foo \"\b\a\r\""'
));
$this->
assertEquals('foo \\ bar', HeaderUtils::
unquote('"foo \\\\ bar"'
));
} public function testMakeDispositionInvalidDisposition() { $this->
expectException(\InvalidArgumentException::
class);
HeaderUtils::
makeDisposition('invalid', 'foo.html'
);
} /**
* @dataProvider provideMakeDisposition
*/
public function testMakeDisposition($disposition,
$filename,
$filenameFallback,
$expected) { $this->
assertEquals($expected, HeaderUtils::
makeDisposition($disposition,
$filename,
$filenameFallback));
} public static function provideMakeDisposition() {