Example #1
0
 public function testMediaType()
 {
     $f = new File('foo', new StringStream('bar'), $mt = MediaType::fromString('application/json'));
     $this->assertSame($mt, $f->mediaType());
 }