@return now trims the content before splitting it;

Removed ThrowTag.php (unnecessary, given the map, which aliases "throw" to ThrowsTag.php);
Added tests for ThrowsTag, along with a few other minor test additions and fixes;
This commit is contained in:
Vasil Rangelov
2012-11-11 19:51:04 +02:00
parent ae82b8488f
commit 04936a7b39
7 changed files with 187 additions and 56 deletions
@@ -149,6 +149,32 @@ DOCBLOCK;
);
}
/**
* @covers \phpDocumentor\Reflection\DocBlock::parseTags
* @expectedException \LogicException
*
* @return void
*/
public function testInvalidTagBlock()
{
if (0 == ini_get('allow_url_include')) {
$this->markTestSkipped('"data" URIs for includes are required.');
}
require 'data:text/plain;base64,'. base64_encode(
<<<'TAG_HANDLER'
<?php
class MyReflectionDocBlock extends \phpDocumentor\Reflection\DocBlock {
protected function splitDocBlock($comment) {
return array('', '', 'Invalid tag block');
}
}
TAG_HANDLER
);
new \MyReflectionDocBlock('');
}
public function testTagCaseSensitivity()
{
$fixture = <<<DOCBLOCK