Skip to content

Commit 76619d4

Browse files
committed
Adjusted Unit tests and docs to match the latest dot separation.
1 parent 47d3f86 commit 76619d4

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

src/phpDocumentor/Reflection/DocBlock.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ protected function splitDocBlock($comment)
143143
* Splits the docblock into a short description, long description and
144144
* tags section
145145
* - The short description is started from the first character until
146-
* a dot is encountered followed by a whitespace OR
146+
* a dot is encountered followed by a newline OR
147147
* two consecutive newlines (horizontal whitespace is taken into
148148
* account to consider spacing errors)
149149
* - The long description, any character until a new line is

tests/phpDocumentor/Reflection/DocBlockTest.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ public function testConstruct()
3434
{
3535
$fixture = <<<DOCBLOCK
3636
/**
37-
* This is a short description.
37+
* This is a short description
3838
*
39-
* This is a long description.
39+
* This is a long description
4040
*
4141
* @see \MyClass
4242
* @return void
@@ -48,11 +48,11 @@ public function testConstruct()
4848
new Location(2)
4949
);
5050
$this->assertEquals(
51-
'This is a short description.',
51+
'This is a short description',
5252
$object->getShortDescription()
5353
);
5454
$this->assertEquals(
55-
'This is a long description.',
55+
'This is a long description',
5656
$object->getLongDescription()->getContents()
5757
);
5858
$this->assertCount(2, $object->getTags());
@@ -142,7 +142,8 @@ public function testDotSeperation()
142142
{
143143
$fixture = <<<DOCBLOCK
144144
/**
145-
* This is a short description. This is a long description.
145+
* This is a short description.
146+
* This is a long description.
146147
* This is a continuation of the long description.
147148
*/
148149
DOCBLOCK;

0 commit comments

Comments
 (0)