mirror of
https://github.com/barryvdh/ReflectionDocBlock.git
synced 2026-08-17 17:47:13 +00:00
Adjusted Unit tests and docs to match the latest dot separation.
This commit is contained in:
@@ -143,7 +143,7 @@ class DocBlock implements \Reflector
|
|||||||
* Splits the docblock into a short description, long description and
|
* Splits the docblock into a short description, long description and
|
||||||
* tags section
|
* tags section
|
||||||
* - The short description is started from the first character until
|
* - The short description is started from the first character until
|
||||||
* a dot is encountered followed by a whitespace OR
|
* a dot is encountered followed by a newline OR
|
||||||
* two consecutive newlines (horizontal whitespace is taken into
|
* two consecutive newlines (horizontal whitespace is taken into
|
||||||
* account to consider spacing errors)
|
* account to consider spacing errors)
|
||||||
* - The long description, any character until a new line is
|
* - The long description, any character until a new line is
|
||||||
|
|||||||
@@ -34,9 +34,9 @@ class DocBlockTest extends \PHPUnit_Framework_TestCase
|
|||||||
{
|
{
|
||||||
$fixture = <<<DOCBLOCK
|
$fixture = <<<DOCBLOCK
|
||||||
/**
|
/**
|
||||||
* This is a short description.
|
* This is a short description
|
||||||
*
|
*
|
||||||
* This is a long description.
|
* This is a long description
|
||||||
*
|
*
|
||||||
* @see \MyClass
|
* @see \MyClass
|
||||||
* @return void
|
* @return void
|
||||||
@@ -48,11 +48,11 @@ DOCBLOCK;
|
|||||||
new Location(2)
|
new Location(2)
|
||||||
);
|
);
|
||||||
$this->assertEquals(
|
$this->assertEquals(
|
||||||
'This is a short description.',
|
'This is a short description',
|
||||||
$object->getShortDescription()
|
$object->getShortDescription()
|
||||||
);
|
);
|
||||||
$this->assertEquals(
|
$this->assertEquals(
|
||||||
'This is a long description.',
|
'This is a long description',
|
||||||
$object->getLongDescription()->getContents()
|
$object->getLongDescription()->getContents()
|
||||||
);
|
);
|
||||||
$this->assertCount(2, $object->getTags());
|
$this->assertCount(2, $object->getTags());
|
||||||
@@ -142,7 +142,8 @@ DOCBLOCK;
|
|||||||
{
|
{
|
||||||
$fixture = <<<DOCBLOCK
|
$fixture = <<<DOCBLOCK
|
||||||
/**
|
/**
|
||||||
* This is a short description. This is a long description.
|
* This is a short description.
|
||||||
|
* This is a long description.
|
||||||
* This is a continuation of the long description.
|
* This is a continuation of the long description.
|
||||||
*/
|
*/
|
||||||
DOCBLOCK;
|
DOCBLOCK;
|
||||||
|
|||||||
Reference in New Issue
Block a user