/**
  * Tests that the parser handles an interface within an instanceof operator
  * correct.
  *
  * @return void
  * @group bugs
  */
 public function testAnalyzerReturnsExpectedNPathValue()
 {
     $packages = self::parseTestCaseSource(__METHOD__);
     $function = $packages->current()->getFunctions()->current();
     $analyzer = new PHP_Depend_Metrics_NPathComplexity_Analyzer();
     $analyzer->analyze($packages);
     $this->assertSame(array('npath' => '6'), $analyzer->getNodeMetrics($function));
 }
 /**
  * Tests that the parser handles an interface within an instanceof operator
  * correct.
  *
  * @return void
  */
 public function testAnalyzerReturnsExpectedNPathValue()
 {
     $packages = self::parseCodeResourceForTest();
     $function = $packages->current()->getFunctions()->current();
     $analyzer = new PHP_Depend_Metrics_NPathComplexity_Analyzer();
     $analyzer->setCache(new PHP_Depend_Util_Cache_Driver_Memory());
     $analyzer->analyze($packages);
     self::assertEquals(array('npath' => '6'), $analyzer->getNodeMetrics($function));
 }