File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
src/phpDocumentor/Reflection
tests/phpDocumentor/Reflection Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ protected function splitDocBlock($comment)
143
143
* Splits the docblock into a short description, long description and
144
144
* tags section
145
145
* - 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
147
147
* two consecutive newlines (horizontal whitespace is taken into
148
148
* account to consider spacing errors)
149
149
* - The long description, any character until a new line is
Original file line number Diff line number Diff line change @@ -34,9 +34,9 @@ public function testConstruct()
34
34
{
35
35
$ fixture = <<<DOCBLOCK
36
36
/**
37
- * This is a short description.
37
+ * This is a short description
38
38
*
39
- * This is a long description.
39
+ * This is a long description
40
40
*
41
41
* @see \MyClass
42
42
* @return void
@@ -48,11 +48,11 @@ public function testConstruct()
48
48
new Location (2 )
49
49
);
50
50
$ this ->assertEquals (
51
- 'This is a short description. ' ,
51
+ 'This is a short description ' ,
52
52
$ object ->getShortDescription ()
53
53
);
54
54
$ this ->assertEquals (
55
- 'This is a long description. ' ,
55
+ 'This is a long description ' ,
56
56
$ object ->getLongDescription ()->getContents ()
57
57
);
58
58
$ this ->assertCount (2 , $ object ->getTags ());
@@ -142,7 +142,8 @@ public function testDotSeperation()
142
142
{
143
143
$ fixture = <<<DOCBLOCK
144
144
/**
145
- * This is a short description. This is a long description.
145
+ * This is a short description.
146
+ * This is a long description.
146
147
* This is a continuation of the long description.
147
148
*/
148
149
DOCBLOCK ;
You can’t perform that action at this time.
0 commit comments