mirror of
https://github.com/barryvdh/ReflectionDocBlock.git
synced 2026-08-18 01:57:13 +00:00
Add test for empty email address.
This commit is contained in:
committed by
Jaap van Otterdijk
parent
f0821ad88f
commit
c14a4abfd7
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user