Bozhidar Hristov
2017-08-28 09:51:41 +03:00
parent 4aada1f93c
commit b11ada456f
2 changed files with 14 additions and 3 deletions
+11
View File
@@ -37,6 +37,17 @@ class VarTest extends \PHPUnit_Framework_TestCase
$this->assertSame('var', $fixture->getName());
}
/**
* @uses \phpDocumentor\Reflection\DocBlock\Tags\Var_::__construct
* @covers \phpDocumentor\Reflection\DocBlock\Tags\BaseTag::render
*/
public function testIfVariableNameIsOmmitedIfEmpty()
{
$fixture = new Var_('', null, null);
$this->assertSame('@var', $fixture->render());
}
/**
* @uses \phpDocumentor\Reflection\DocBlock\Tags\Var_::__construct
* @uses \phpDocumentor\Reflection\DocBlock\Tags\Var_::__toString