1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92
|
/* This file is part of KDevelop
SPDX-FileCopyrightText: 2008 Niko Sams <niko.sams@gmail.com>
SPDX-License-Identifier: LGPL-2.0-only
*/
#ifndef TESTCOMPLETION_H
#define TESTCOMPLETION_H
#include <language/codecompletion/codecompletionitem.h>
#include <language/duchain/classdeclaration.h>
#include "../../duchain/tests/duchaintestbase.h"
namespace Php
{
class TestCompletion : public DUChainTestBase
{
Q_OBJECT
public:
TestCompletion();
private:
void dumpCompletionItems(QList<KDevelop::CompletionTreeItemPointer> items);
void verifyExtendsOrImplements(const QString &code, const QString &actionStr,
KDevelop::ClassDeclarationData::ClassType,
const KDevelop::CursorInRevision& cursor,
QStringList forbiddenIdentifiers);
private Q_SLOTS:
void publicObjectCompletion();
void publicStaticObjectCompletion();
void protectedObjectCompletion();
void protectedStaticObjectCompletion();
void privateObjectCompletion();
void privateStaticObjectCompletion();
void methodCall();
void functionCall();
void nestedFunctionCall_data();
void nestedFunctionCall();
void newObjectFromOtherFile();
void constantFromOtherFile();
void baseClass();
void extendsFromOtherFile();
void globalClassFromOtherFile();
void codeModel();
void projectFileClass();
void variable();
void nameNormalVariable();
void nameClassMember();
void exceptions();
void exceptionOtherFile();
void abstractMethods();
void interfaceMethods();
void interfaceMethods2();
void overrideMethods();
void overrideVars();
void implementMethods();
void inArray();
void newExtends();
void updateExtends();
void newImplements();
void updateImplements();
void avoidCircularInheritance();
void unsureType();
void completionAfterComments();
void completionInComments();
void phpStartTag();
void outsidePhpContext();
void nonGlobalInFunction();
void fileCompletion();
void instanceof();
void afterFunctionArg();
void functionBeforeDeclaration();
void classBeforeDeclaration();
void constantBeforeDeclaration();
void variableBeforeDeclaration();
void functionArguments();
void referencedClass();
void ctorCall();
void chainedCalling();
void funcCallInConditional();
void namespaces();
void inNamespace();
void closures();
};
}
#endif // TESTCOMPLETION_H
|