From 50951b341f18712fe5ae3e36527d6bcae9ed7073 Mon Sep 17 00:00:00 2001 From: sowrensen Date: Tue, 5 Mar 2024 06:53:25 +0000 Subject: [PATCH] Fix styling --- tests/ExceptionTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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();