From c14a4abfd740ca0af2ad70862255b28503b3dd91 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Wed, 26 Apr 2017 13:58:34 +0200 Subject: [PATCH] Add test for empty email address. --- tests/unit/DocBlock/Tags/AuthorTest.php | 11 +++++++++++ 1 file changed, 11 insertions(+) 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::