$this->
assertDescription($expectedDescription,
$callable);
} public static function getDescribeDeprecatedCallableTestData(): array
{ return static::
getDescriptionTestData(ObjectsProvider::
getDeprecatedCallables());
} /** @dataProvider getClassDescriptionTestData */
public function testGetClassDescription($object,
$expectedDescription) { $this->
assertEquals($expectedDescription,
$this->
getDescriptor()->
getClassDescription($object));
} public static function getClassDescriptionTestData(): array
{ return [ [ClassWithDocCommentOnMultipleLines::
class, 'This is the first line of the description. This is the second line.'
],
[ClassWithDocCommentWithoutInitialSpace::
class, 'Foo.'
],
[ClassWithoutDocComment::
class, ''
],
[ClassWithDocComment::
class, 'This is a class with a doc comment.'
],
];
}