public getDescription ( ) : string | ||
return | string | Doc comment description |
public function getDescription()
{
return $this->getDocCommentParser()->getDescription();
}
/** * @test */ public function proxyClassesStillContainDocCommentsFromItsOriginalClass() { $class = new ClassReflection(Fixtures\ClassWithDocComments::class); $expectedResult = 'This is a example doc comment which should be copied' . chr(10) . 'to the proxy class.'; $actualResult = $class->getDescription(); $this->assertSame($expectedResult, $actualResult); }