analyze() public method

Processes all {@link \PDepend\Source\AST\ASTNamespace} code nodes.
public analyze ( PDepend\Source\AST\ASTNamespace[] $namespaces ) : void
$namespaces PDepend\Source\AST\ASTNamespace[]
return void
 /**
  * testAnalyzerNotCountsImplementedInterfaceMethodsAsOverwritten
  *
  * @return void
  */
 public function testAnalyzerNotCountsImplementedInterfaceMethodsAsOverwritten()
 {
     $namespaces = self::parseCodeResourceForTest();
     $class = $namespaces->current()->getClasses()->current();
     $analyzer = new InheritanceAnalyzer();
     $analyzer->analyze($namespaces);
     $metrics = $analyzer->getNodeMetrics($class);
     $this->assertEquals(1, $metrics['noom']);
 }
 /**
  * testInheritanceAnalyzerNotRunsEndlessForDeepInterfaceHierarchy
  *
  * @return void
  */
 public function testInheritanceAnalyzerNotRunsEndlessForDeepInterfaceHierarchy()
 {
     set_time_limit(5);
     $analyzer = new InheritanceAnalyzer();
     $analyzer->analyze($this->parseCodeResourceForTest());
 }