Skip to content

Commit

Permalink
- Missing test method for ClassLevel analyzer added.
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelpichler committed Feb 16, 2011
1 parent 2a83147 commit bbe3559
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/test/php/PHP/Depend/Metrics/ClassLevel/AnalyzerTest.php
Expand Up @@ -96,6 +96,20 @@ public function testAddAnalyzerFailsForAnInvalidAnalyzerTypeFail()
$analyzer = new PHP_Depend_Metrics_ClassLevel_Analyzer();
$analyzer->addAnalyzer(new PHP_Depend_Metrics_CodeRank_Analyzer());
}

/**
* testGetRequiredAnalyzersReturnsExpectedClassNames
*
* @return void
*/
public function testGetRequiredAnalyzersReturnsExpectedClassNames()
{
$analyzer = new PHP_Depend_Metrics_ClassLevel_Analyzer();
self::assertEquals(
array(PHP_Depend_Metrics_CyclomaticComplexity_Analyzer::CLAZZ),
$analyzer->getRequiredAnalyzers()
);
}

/**
* Tests that the analyzer calculates the correct IMPL values.
Expand Down

0 comments on commit bbe3559

Please sign in to comment.