-
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #136 from gsteel/dep-singleton-registry-removal
remove E_USER_DEPRECATED deprecated methods
- Loading branch information
Showing
4 changed files
with
0 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,6 @@ | |
use Laminas\View\Helper\Gravatar; | ||
use Laminas\View\Renderer\PhpRenderer as View; | ||
use PHPUnit\Framework\TestCase; | ||
use ReflectionMethod; | ||
|
||
use function method_exists; | ||
use function strtoupper; | ||
|
@@ -274,34 +273,4 @@ public function testEmailIsProperlyNormalized(): void | |
$this->helper->__invoke('[email protected] ')->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); | ||
} | ||
} |