Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.

Commit c6d8e0c

Browse files
committed
Add deprecated DocComment tag for getAttribs
1 parent 9910c88 commit c6d8e0c

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/Helper/Gravatar.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,8 @@ public function getAttributes()
234234
* value!
235235
*
236236
* @return array
237+
*
238+
* @deprecated Please use Zend\View\Helper\Gravatar::getAttributes
237239
*/
238240
public function getAttribs()
239241
{

test/Helper/GravatarTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,4 +309,12 @@ public function testGetAttribsIsDeprecated()
309309

310310
$this->helper->getAttribs();
311311
}
312+
313+
public function testGetAttribsDocCommentHasDeprecated()
314+
{
315+
$method = new ReflectionMethod($this->helper, 'getAttribs');
316+
$comment = $method->getDocComment();
317+
318+
$this->assertContains('@deprecated', $comment);
319+
}
312320
}

0 commit comments

Comments
 (0)