diff --git a/tests/unit/DocBlock/Tags/AuthorTest.php b/tests/unit/DocBlock/Tags/AuthorTest.php index 53274f1..87157f4 100644 --- a/tests/unit/DocBlock/Tags/AuthorTest.php +++ b/tests/unit/DocBlock/Tags/AuthorTest.php @@ -124,6 +124,17 @@ class AuthorTest extends \PHPUnit_Framework_TestCase $this->assertSame('Mike van Riel ', (string)$fixture); } + /** + * @covers ::__construct + * @covers ::__toString + */ + public function testStringRepresentationWithEmtpyEmail() + { + $fixture = new Author('Mike van Riel', ''); + + $this->assertSame('Mike van Riel', (string)$fixture); + } + /** * @covers ::create * @uses \phpDocumentor\Reflection\DocBlock\Tags\Author::