public static function fileIsTooBig($size, $max) { return new static("File is too big ({$size} bytes). Maximum upload size is {$max} bytes."); }
public function test_it_returns_a_413_for_too_big_file() { $e = (new SampleExceptionHandler())->render(FileSizeException::fileIsTooBig(3, 2)); $this->assertHttpException($e, 413); }