Lines Matching refs:self

69         $annotations = self::parseTestMethodAnnotations(
78 return self::getLinesToBeCoveredOrUsed($className, $methodName, 'covers');
91 return self::getLinesToBeCoveredOrUsed($className, $methodName, 'uses');
105 $annotations = self::parseTestMethodAnnotations(
149 self::resolveElementToReflectionObjects($element)
153 return self::resolveReflectionObjectsToLines($codeList);
172 if ($count = preg_match_all(self::REGEX_REQUIRES_OS, $docComment, $matches)) {
178 if ($count = preg_match_all(self::REGEX_REQUIRES_VERSION, $docComment, $matches)) {
190 if ($count = preg_match_all(self::REGEX_REQUIRES, $docComment, $matches)) {
293 if (preg_match(self::REGEX_EXPECTED_EXCEPTION, $docComment, $matches)) {
294 $annotations = self::parseTestMethodAnnotations(
307 $message = self::parseAnnotationContent(
313 $messageRegExp = self::parseAnnotationContent(
321 $code = self::parseAnnotationContent(
378 $data = self::getDataFromDataProviderAnnotation($docComment, $className, $methodName);
381 $data = self::getDataFromTestWithAnnotation($docComment);
418 if (preg_match_all(self::REGEX_DATA_PROVIDER, $docComment, $matches)) {
478 $docComment = self::cleanUpMultiLineAnnotation($docComment);
480 if (preg_match(self::REGEX_TEST_WITH, $docComment, $matches, PREG_OFFSET_CAPTURE)) {
532 if (!isset(self::$annotationCache[$className])) {
534 self::$annotationCache[$className] = self::parseAnnotations($class->getDocComment());
537 … if (!empty($methodName) && !isset(self::$annotationCache[$className . '::' . $methodName])) {
540 $annotations = self::parseAnnotations($method->getDocComment());
544 self::$annotationCache[$className . '::' . $methodName] = $annotations;
548 'class' => self::$annotationCache[$className],
549 … 'method' => !empty($methodName) ? self::$annotationCache[$className . '::' . $methodName] : []
616 'backupGlobals' => self::getBooleanAnnotationSetting(
621 'backupStaticAttributes' => self::getBooleanAnnotationSetting(
639 $annotations = self::parseTestMethodAnnotations(
670 return self::getBooleanAnnotationSetting(
687 $annotations = self::parseTestMethodAnnotations(
738 $groups = array_flip(self::getGroups($className, $methodName));
739 $size = self::UNKNOWN;
745 $size = self::LARGE;
747 $size = self::MEDIUM;
749 $size = self::SMALL;
765 $annotations = self::parseTestMethodAnnotations(
793 $annotations = self::parseTestMethodAnnotations(
816 return self::getBooleanAnnotationSetting(
831 return self::emptyHookMethodsArray();
834 if (!isset(self::$hookMethods[$className])) {
835 self::$hookMethods[$className] = self::emptyHookMethodsArray();
841 if (self::isBeforeClassMethod($method)) {
842 self::$hookMethods[$className]['beforeClass'][] = $method->getName();
845 if (self::isBeforeMethod($method)) {
846 self::$hookMethods[$className]['before'][] = $method->getName();
849 if (self::isAfterMethod($method)) {
850 self::$hookMethods[$className]['after'][] = $method->getName();
853 if (self::isAfterClassMethod($method)) {
854 self::$hookMethods[$className]['afterClass'][] = $method->getName();
861 return self::$hookMethods[$className];
886 $annotations = self::parseTestMethodAnnotations(