makeDisposition() public method

Generates a HTTP Content-Disposition field-value.
See also: RFC 6266
public makeDisposition ( string $disposition, string $filename, string $filenameFallback = '' ) : string
$disposition string One of "inline" or "attachment"
$filename string A unicode string
$filenameFallback string A string containing only ASCII characters that is semantically equivalent to $filename. If the filename is already ASCII, it can be omitted, or just copied from $filename
return string A string suitable for use as a Content-Disposition field-value
 /**
  * @dataProvider provideMakeDispositionFail
  * @expectedException \InvalidArgumentException
  */
 public function testMakeDispositionFail($disposition, $filename)
 {
     $headers = new ResponseHeaderBag();
     $headers->makeDisposition($disposition, $filename);
 }