Skip to content

Commit

Permalink
Merge [892].
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Aug 2, 2007
1 parent ad3f42b commit a0a1f5e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions PHPUnit/Util/Class.php
Expand Up @@ -271,5 +271,19 @@ public static function getCCN($className, $methodName)

return $ccn;
}

/**
* Returns the Depth of Inheritance Tree (DIT) for a class.
*
* @param string $className
* @return integer
* @access public
* @static
* @since Method available since Release 3.1.6
*/
public static function getDIT($className)
{
return count(self::getHierarchy($className));
}
}
?>

0 comments on commit a0a1f5e

Please sign in to comment.