Warning, file /kdevelop/kdev-php/duchain/tests/duchain.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /*
0002     SPDX-FileCopyrightText: 2008 Niko Sams <niko.sams@gmail.com>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-only
0005 */
0006 
0007 #ifndef TESTDUCHAIN_H
0008 #define TESTDUCHAIN_H
0009 
0010 #include "tests/duchaintestbase.h"
0011 
0012 namespace Php
0013 {
0014 class TestDUChain : public DUChainTestBase
0015 {
0016     Q_OBJECT
0017 
0018 public:
0019     TestDUChain();
0020 
0021 private slots:
0022     void declareFunction();
0023     void declareBaseTypeFunction();
0024     void declareSemiReservedFunction();
0025     void declareVar();
0026     void varTypehint();
0027     void declareClass();
0028     void declareBaseTypeClass();
0029     void declareClassWithSemiReservedMethod();
0030     void declareClassWithBaseTypeMethod();
0031     void classMemberVar();
0032     void classMemberVarTypehint();
0033     void classMemberVarAfterUse();
0034     void classMemberVarDocBlockType();
0035     void declareTypehintFunction();
0036     void declareVariadicFunction();
0037     void declareTypehintVariadicFunction();
0038     void declareTypehintObjectFunction();
0039     void declareTypehintObjectFunctionWithNullDefault();
0040     void declareTypehintObjectFunctionWithInvalidDefaultValue();
0041     void declaredTypehintOverridesDetectedValue();
0042     void declareTypehintArrayFunction();
0043     void declareTypehintCallableFunction();
0044     void functionWithCallableAndFunctionReturn();
0045     void declareTypehintIterableFunction();
0046     void declareTypehintBoolFunction();
0047     void declareTypehintFloatFunction();
0048     void declareTypehintIntFunction();
0049     void declareTypehintStringFunction();
0050     void declareTypehintMixedFunction();
0051     void declareNullableTypehintArrayFunction();
0052     void declareNullableTypehintMixedFunction();
0053     void declareTypehintNullableIterableFunction();
0054     void declareTypehintWithPhpdocFunction();
0055     void declareTypehintUnionFunction();
0056     void returnTypeGenerator_data();
0057     void returnTypeGenerator();
0058     void returnTypeGeneratorDelegation();
0059     void returnTypeClass();
0060     void declarationReturnType();
0061     void declarationReturnTypeInRecursingFunction();
0062     void returnTypeViaMember();
0063     void declarationMultipleReturnTypes();
0064     void declarationReturnTypeDocBlock();
0065     void declarationReturnTypeDocBlockIntegral();
0066     void declarationReturnTypeClassChain();
0067     void declarationReturnTypeTypehint();
0068     void declarationReturnTypeTypehintVoid();
0069     void declarationReturnTypeTypehintObject();
0070     void declarationReturnTypeTypehintUnion();
0071     void classImplementsInterface();
0072     void classExtends();
0073     void staticMethod();
0074     void ownStaticMethod();
0075     void thisVar();
0076     void objectFunctionCall();
0077     void objectFunctionCall2();
0078     void objectFunctionCall3();
0079     void objectVariable();
0080     void staticMemberVariable();
0081     void ownStaticMemberVariable();
0082     void classConst();
0083     void classConst_data();
0084     void classConstWithTypeHint();
0085     void classConstVisibility();
0086     void semiReservedClassConst();
0087     void illegalClassConst();
0088     void illegalClassConst_data();
0089     void fileConst();
0090     void fileConst_data();
0091     void semiReservedFileConst();
0092     void define();
0093     void defaultFunctionParam();
0094     void defaultFunctionParamWithTypehint();
0095     void nullDefaultFunctionParamWithTypehint();
0096     void globalFunction();
0097     void globalVariableFromInternalFunctions();
0098     void newObjectFromOtherFile();
0099     void unknownReturnType();
0100     void staticFunctionCallFromOtherFile();
0101     void classConstantFromOtherFile();
0102     void globalFunctionCallFromOtherFile();
0103     void constantFromOtherFile();
0104     void singleton();
0105     void internalFunctions();
0106     void trueFalse();
0107     void null();
0108     void array();
0109     void functionDocBlock();
0110     void variableDocBlock();
0111     void functionDocBlockParams();
0112     void memberFunctionDocBlockParams();
0113     void foreachLoop();
0114     void php4StyleConstructor();
0115     void constructor();
0116     void destructor();
0117     void functionInFunction();
0118     void objectWithClassName();
0119     void largeNumberOfDeclarations();
0120     void staticVariable();
0121     void returnTypeTwoDeclarations();
0122     void globalVariableNotVisibleInFunction();
0123     void globalVariableInFunction();
0124     void nonGlobalVariableInFunction();
0125     void superglobalInFunction();
0126     void returnWithoutFunction();
0127     void circularInheritance();
0128     void circularInterface();
0129     void findDeclarations();
0130     void memberTypeAfterMethod();
0131     void catchDeclaration();
0132     void multiCatchDeclaration();
0133     void resourceType();
0134     void foreachIterator();
0135     void foreachIterator2();
0136     void foreachIterator3();
0137     void foreachIterator4();
0138     void foreachArray();
0139     void returnThis();
0140     void unsureReturnType();
0141     void unsureReturnType2();
0142     void unsureReturnType3();
0143     void unsureReturnType4();
0144     void referencedArgument();
0145     void unsureReferencedArgument();
0146     void defaultArgument();
0147     void declareMemberOutOfClass();
0148     void declareMemberOutOfClass2();
0149     void declareMemberInClassMethod();
0150     void thisRedeclaration();
0151     void implicitArrayDeclaration();
0152     void implicitReferenceDeclaration();
0153     void classContextRange();
0154     void lateClassMembers();
0155     void list();
0156     void alternateDocCommentTypeHints();
0157     void findFunctionArgs();
0158     void undeclaredPropertyInString();
0159     void undeclaredVarPropertyInString();
0160     void upcommingClassInString();
0161     void namespaces();
0162     void namespacesNoCurly();
0163     void namespacesBaseType();
0164     void useNamespace();
0165     void useGroupedNamespace_data();
0166     void useGroupedNamespace();
0167     void useInvalidGroupedNamespace_data();
0168     void useInvalidGroupedNamespace();
0169     void useBaseTypeNamespace();
0170     void useNamespaceBaseTypeAlias();
0171     void namespaceStaticVar();
0172     void namespacedCatch();
0173     void errorRecovery_data();
0174     void errorRecovery();
0175     void varStatic();
0176     void staticNowdoc();
0177     void curlyVarAfterObj();
0178     void embeddedHTML_data();
0179     void embeddedHTML();
0180     void cases();
0181     void closureParser();
0182     void closures();
0183     void closureEmptyUse();
0184     void iifeParser();
0185     void iife();
0186     void gotoTest();
0187     void ternary();
0188     void bug296709();
0189     void declareFinalMethod();
0190     void testTodoExtractor();
0191     void useThisAsArray();
0192     void wrongUseOfThisAsArray();
0193     void staticFunctionClassPhp54();
0194     void functionArgumentUnpacking_data();
0195     void functionArgumentUnpacking();
0196     void illegalExpression_data();
0197     void illegalExpression();
0198     void printExpression_data();
0199     void printExpression();
0200     void simpleExpression_data();
0201     void simpleExpression();
0202     void generatorAssignment();
0203     void generatorClosure();
0204     void propertyUnionType();
0205 };
0206 
0207 }
0208 
0209 #endif