From 7f556029481b25e8f81bb0aa5d3f2baec36032a3 Mon Sep 17 00:00:00 2001 From: Vasil Rangelov Date: Tue, 16 Apr 2013 19:25:40 +0300 Subject: [PATCH] Adjusted Unit tests and docs to match the latest dot separation. --- src/phpDocumentor/Reflection/DocBlock.php | 2 +- tests/phpDocumentor/Reflection/DocBlockTest.php | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/phpDocumentor/Reflection/DocBlock.php b/src/phpDocumentor/Reflection/DocBlock.php index a79d100..9b6a97f 100644 --- a/src/phpDocumentor/Reflection/DocBlock.php +++ b/src/phpDocumentor/Reflection/DocBlock.php @@ -143,7 +143,7 @@ class DocBlock implements \Reflector * Splits the docblock into a short description, long description and * tags section * - 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 * account to consider spacing errors) * - The long description, any character until a new line is diff --git a/tests/phpDocumentor/Reflection/DocBlockTest.php b/tests/phpDocumentor/Reflection/DocBlockTest.php index e87e3b9..41b03ed 100644 --- a/tests/phpDocumentor/Reflection/DocBlockTest.php +++ b/tests/phpDocumentor/Reflection/DocBlockTest.php @@ -34,9 +34,9 @@ class DocBlockTest extends \PHPUnit_Framework_TestCase { $fixture = <<assertEquals( - 'This is a short description.', + 'This is a short description', $object->getShortDescription() ); $this->assertEquals( - 'This is a long description.', + 'This is a long description', $object->getLongDescription()->getContents() ); $this->assertCount(2, $object->getTags()); @@ -142,7 +142,8 @@ DOCBLOCK; { $fixture = <<