/** * 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()); }