From 3eebe5fe556b178ce6b84fa12d9079e2bb4114db Mon Sep 17 00:00:00 2001 From: George Steel Date: Tue, 1 Feb 2022 16:52:24 +0000 Subject: [PATCH] Removes tests targeting deprecated and removed methods Signed-off-by: George Steel --- psalm-baseline.xml | 10 ---------- test/Helper/GravatarTest.php | 30 ------------------------------ 2 files changed, 40 deletions(-) diff --git a/psalm-baseline.xml b/psalm-baseline.xml index 8b2de156b..2165d4b2b 100644 --- a/psalm-baseline.xml +++ b/psalm-baseline.xml @@ -1447,9 +1447,6 @@ - - null === static::$instance - new $this->containerClass($value) @@ -1472,9 +1469,6 @@ (string) $key (string) $key - - new static() - @@ -2361,10 +2355,6 @@ - - getAttribs - setAttribs - $value $value diff --git a/test/Helper/GravatarTest.php b/test/Helper/GravatarTest.php index 0f5cd8c23..e2d423e49 100644 --- a/test/Helper/GravatarTest.php +++ b/test/Helper/GravatarTest.php @@ -274,34 +274,4 @@ public function testEmailIsProperlyNormalized(): void $this->helper->__invoke('Example@Example.com ')->getEmail() ); } - - public function testSetAttribsIsDeprecated(): void - { - $this->expectDeprecation(); - - $this->helper->setAttribs([]); - } - - public function testSetAttribsDocCommentHasDeprecated(): void - { - $method = new ReflectionMethod($this->helper, 'setAttribs'); - $comment = $method->getDocComment(); - - $this->assertStringContainsString('@deprecated', $comment); - } - - public function testGetAttribsIsDeprecated(): void - { - $this->expectDeprecation(); - - $this->helper->getAttribs(); - } - - public function testGetAttribsDocCommentHasDeprecated(): void - { - $method = new ReflectionMethod($this->helper, 'getAttribs'); - $comment = $method->getDocComment(); - - $this->assertStringContainsString('@deprecated', $comment); - } }