Add test for empty email address.

This commit is contained in:
Jan Schneider
2017-05-29 14:16:37 +02:00
committed by Jaap van Otterdijk
parent f0821ad88f
commit c14a4abfd7
+11
View File
@@ -124,6 +124,17 @@ class AuthorTest extends \PHPUnit_Framework_TestCase
$this->assertSame('Mike van Riel <[email protected]>', (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::<public>