private static function PHPUnit_Util_Test::cleanUpMultiLineAnnotation in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/phpunit/src/Util/Test.php \PHPUnit_Util_Test::cleanUpMultiLineAnnotation()
1 call to PHPUnit_Util_Test::cleanUpMultiLineAnnotation()
- PHPUnit_Util_Test::getDataFromTestWithAnnotation in vendor/
phpunit/ phpunit/ src/ Util/ Test.php
File
- vendor/
phpunit/ phpunit/ src/ Util/ Test.php, line 464
Class
- PHPUnit_Util_Test
- Test helpers.
Code
private static function cleanUpMultiLineAnnotation($docComment) {
//removing initial ' * ' for docComment
$docComment = preg_replace('/' . '\\n' . '\\s*' . '\\*' . '\\s?' . '/', "\n", $docComment);
$docComment = substr($docComment, 0, -1);
$docComment = rtrim($docComment, "\n");
return $docComment;
}