public function TagTest::testIncompatibleTagHandlerRegistration in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpdocumentor/reflection-docblock/tests/phpDocumentor/Reflection/DocBlock/TagTest.php \phpDocumentor\Reflection\DocBlock\TagTest::testIncompatibleTagHandlerRegistration()
@covers \phpDocumentor\Reflection\DocBlock\Tag::registerTagHandler
Return value
void
File
- vendor/
phpdocumentor/ reflection-docblock/ tests/ phpDocumentor/ Reflection/ DocBlock/ TagTest.php, line 239
Class
- TagTest
- Test class for \phpDocumentor\Reflection\DocBlock\Tag\VarTag
Namespace
phpDocumentor\Reflection\DocBlockCode
public function testIncompatibleTagHandlerRegistration() {
$currentHandler = __NAMESPACE__ . '\\Tag\\VarTag';
$tagPreReg = Tag::createInstance('@var mixed');
$this
->assertInstanceOf($currentHandler, $tagPreReg);
$this
->assertInstanceOf(__NAMESPACE__ . '\\Tag', $tagPreReg);
$this
->assertFalse(Tag::registerTagHandler('var', __NAMESPACE__ . '\\TagTest'));
$tagPostReg = Tag::createInstance('@var mixed');
$this
->assertInstanceOf($currentHandler, $tagPostReg);
$this
->assertInstanceOf(__NAMESPACE__ . '\\Tag', $tagPostReg);
}