/** * testGetMethodNamesReturnsExpectedResult * * @return void */ public function testGetMethodNamesReturnsExpectedResult() { $class = new \PDepend\Source\AST\ASTClass(null); $class->addMethod(new \PDepend\Source\AST\ASTMethod(__CLASS__)); $class->addMethod(new \PDepend\Source\AST\ASTMethod(__FUNCTION__)); $node = new PHP_PMD_Node_Class($class); $this->assertEquals(array(__CLASS__, __FUNCTION__), $node->getMethodNames()); }