File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ final public function __construct(
3131 public static function fromDataUrl (string $ dataUrl ): static
3232 {
3333 if (!str_starts_with ($ dataUrl , 'data: ' )) {
34- throw new InvalidArgumentException ('Invalid audio data URL format. ' );
34+ throw new InvalidArgumentException ('Invalid file data URL format. ' );
3535 }
3636
3737 return new static (
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ public function testFromDataUrlWithValidUrl()
3636 public function testFromDataUrlWithInvalidUrl ()
3737 {
3838 $ this ->expectException (\InvalidArgumentException::class);
39- $ this ->expectExceptionMessage ('Invalid audio data URL format. ' );
39+ $ this ->expectExceptionMessage ('Invalid file data URL format. ' );
4040
4141 Audio::fromDataUrl ('invalid-url ' );
4242 }
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ public function testCreateFromDataUrl()
3232 public function testThrowsExceptionForInvalidDataUrl ()
3333 {
3434 $ this ->expectException (InvalidArgumentException::class);
35- $ this ->expectExceptionMessage ('Invalid audio data URL format. ' );
35+ $ this ->expectExceptionMessage ('Invalid file data URL format. ' );
3636
3737 File::fromDataUrl ('invalid-data-url ' );
3838 }
You can’t perform that action at this time.
0 commit comments