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