public static function strictTypeMismatch($mime, $ext) { return new static("File with mime of `{$mime}` not recognized for extension `{$ext}`."); }
public function test_it_returns_a_415_for_type_mismatch() { $e = (new SampleExceptionHandler())->render(FileNotSupportedException::strictTypeMismatch('text/foo', 'bar')); $this->assertHttpException($e, 415); }