/** * 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 ClassNode($class); $this->assertEquals(array(__CLASS__, __FUNCTION__), $node->getMethodNames()); }