diff --git a/tests/ExceptionTest.php b/tests/ExceptionTest.php index 001a4df..e4a6776 100644 --- a/tests/ExceptionTest.php +++ b/tests/ExceptionTest.php @@ -16,22 +16,22 @@ it('will throw exception if font size less than minimum is provided', function () { config(['svg-avatar.font_size' => 9]); new SvgAvatarGenerator('Sansa Stark'); -})->throws(ValidationException::class)->expectExceptionMessageMatches( '/The font size(?: field)? must be between 10 and 50/'); +})->throws(ValidationException::class)->expectExceptionMessageMatches('/The font size(?: field)? must be between 10 and 50/'); it('will throw exception if font size greater than maximum is provided', function () { config(['svg-avatar.font_size' => 51]); new SvgAvatarGenerator('Arya Stark'); -})->throws(ValidationException::class)->expectExceptionMessageMatches( '/The font size(?: field)? must be between 10 and 50/'); +})->throws(ValidationException::class)->expectExceptionMessageMatches('/The font size(?: field)? must be between 10 and 50/'); it('will throw exception if gradient rotation less than minimum is provided', function () { config(['svg-avatar.gradient_rotation' => -1]); new SvgAvatarGenerator('Brandon Stark'); -})->throws(ValidationException::class)->expectExceptionMessageMatches( '/The gradiant rotation(?: field)? must be between 0 and 360/'); +})->throws(ValidationException::class)->expectExceptionMessageMatches('/The gradiant rotation(?: field)? must be between 0 and 360/'); it('will throw exception if gradient rotation greater than maximum is provided', function () { config(['svg-avatar.gradient_rotation' => 361]); new SvgAvatarGenerator('Rickon Stark'); -})->throws(ValidationException::class)->expectExceptionMessageMatches( '/The gradiant rotation(?: field)? must be between 0 and 360/'); +})->throws(ValidationException::class)->expectExceptionMessageMatches('/The gradiant rotation(?: field)? must be between 0 and 360/'); it('will throw missing text exception if text is not set', function () { $generator = new SvgAvatarGenerator();