diff --git a/tests/AvatarTest.php b/tests/AvatarTest.php index 41387f4..13140d4 100644 --- a/tests/AvatarTest.php +++ b/tests/AvatarTest.php @@ -3,6 +3,7 @@ use PHPUnit\Framework\TestCase; use Renfordt\Larvatar\Avatar; use Renfordt\Larvatar\Name; + /** * Unit tests for the Avatar class. */ @@ -167,4 +168,4 @@ public function sizeProvider() [2000000], ]; } -} \ No newline at end of file +} diff --git a/tests/GravatarTest.php b/tests/GravatarTest.php index 1c3d14c..db301fc 100644 --- a/tests/GravatarTest.php +++ b/tests/GravatarTest.php @@ -1,4 +1,6 @@ -setType(LarvatarTypes::mp); - $this->assertEquals( - 'https://www.gravatar.com/avatar/b58996c504c5638798eb6b511e6f49af?d=mp&f=y&s=100', - $gravatar->generateGravatarLink() - ); - } + $gravatar = new Gravatar('user@example.com'); + $gravatar->setType(LarvatarTypes::mp); + $this->assertEquals( + 'https://www.gravatar.com/avatar/b58996c504c5638798eb6b511e6f49af?d=mp&f=y&s=100', + $gravatar->generateGravatarLink() + ); + } } diff --git a/tests/IdenticonTest.php b/tests/IdenticonTest.php index 24545bb..b3b9178 100644 --- a/tests/IdenticonTest.php +++ b/tests/IdenticonTest.php @@ -1,4 +1,5 @@