public static function fileExists($path) { return new static("A file already exists at `{$path}`."); }
public function test_it_returns_a_409_on_duplicate_file() { $e = (new SampleExceptionHandler())->render(FileExistsException::fileExists('already/existing.jpg')); $this->assertHttpException($e, 409); }