Plank\Mediable\Exceptions\MediaUpload\FileNotSupportedException::strictTypeMismatch PHP Method

strictTypeMismatch() public static method

public static strictTypeMismatch ( $mime, $ext )
    public static function strictTypeMismatch($mime, $ext)
    {
        return new static("File with mime of `{$mime}` not recognized for extension `{$ext}`.");
    }

Usage Example

 public function test_it_returns_a_415_for_type_mismatch()
 {
     $e = (new SampleExceptionHandler())->render(FileNotSupportedException::strictTypeMismatch('text/foo', 'bar'));
     $this->assertHttpException($e, 415);
 }
All Usage Examples Of Plank\Mediable\Exceptions\MediaUpload\FileNotSupportedException::strictTypeMismatch