analyze() публичный Метод

Processes all {@link \PDepend\Source\AST\ASTNamespace} code nodes.
public analyze ( PDepend\Source\AST\ASTNamespace[] $namespaces ) : void
$namespaces PDepend\Source\AST\ASTNamespace[]
Результат void
 /**
  * Tests that the parser handles an interface within an instanceof operator
  * correct.
  *
  * @return void
  */
 public function testAnalyzerReturnsExpectedNPathValue()
 {
     $namespaces = self::parseCodeResourceForTest();
     $function = $namespaces->current()->getFunctions()->current();
     $analyzer = new NPathComplexityAnalyzer();
     $analyzer->setCache(new MemoryCacheDriver());
     $analyzer->analyze($namespaces);
     $this->assertEquals(array('npath' => '6'), $analyzer->getNodeMetrics($function));
 }