Skip to content

Commit c14a4ab

Browse files
yunoshjaapio
authored andcommitted
Add test for empty email address.
1 parent f0821ad commit c14a4ab

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/unit/DocBlock/Tags/AuthorTest.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,17 @@ public function testStringRepresentationIsReturned()
124124
$this->assertSame('Mike van Riel <[email protected]>', (string)$fixture);
125125
}
126126

127+
/**
128+
* @covers ::__construct
129+
* @covers ::__toString
130+
*/
131+
public function testStringRepresentationWithEmtpyEmail()
132+
{
133+
$fixture = new Author('Mike van Riel', '');
134+
135+
$this->assertSame('Mike van Riel', (string)$fixture);
136+
}
137+
127138
/**
128139
* @covers ::create
129140
* @uses \phpDocumentor\Reflection\DocBlock\Tags\Author::<public>

0 commit comments

Comments
 (0)