Lines Matching refs:method

539                 $method      = new ReflectionMethod($className, $methodName);
540 $annotations = self::parseAnnotations($method->getDocComment());
561 $method = new ReflectionMethod($className, $methodName);
562 $code = file($method->getFileName());
563 $lineNumber = $method->getStartLine();
564 $startLine = $method->getStartLine() - 1;
565 $endLine = $method->getEndLine() - 1;
840 foreach ($class->getMethods() as $method) {
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();
956 foreach ($methods as $method) {
957 if ($inverse && !$method->$visibility()) {
958 $codeToCoverList[] = $method;
959 } elseif (!$inverse && $method->$visibility()) {
960 $codeToCoverList[] = $method;
1061 * @param ReflectionMethod $method
1065 private static function isBeforeClassMethod(ReflectionMethod $method) argument
1067 return $method->isStatic() && strpos($method->getDocComment(), '@beforeClass') !== false;
1071 * @param ReflectionMethod $method
1075 private static function isBeforeMethod(ReflectionMethod $method) argument
1077 return preg_match('/@before\b/', $method->getDocComment());
1081 * @param ReflectionMethod $method
1085 private static function isAfterClassMethod(ReflectionMethod $method) argument
1087 return $method->isStatic() && strpos($method->getDocComment(), '@afterClass') !== false;
1091 * @param ReflectionMethod $method
1095 private static function isAfterMethod(ReflectionMethod $method) argument
1097 return preg_match('/@after\b/', $method->getDocComment());