1
/* This file is part of KDevelop
2
Copyright 2008 Niko Sams <niko.sams@gmail.com>
4
This library is free software; you can redistribute it and/or
5
modify it under the terms of the GNU Library General Public
6
License version 2 as published by the Free Software Foundation.
8
This library is distributed in the hope that it will be useful,
9
but WITHOUT ANY WARRANTY; without even the implied warranty of
10
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
Library General Public License for more details.
13
You should have received a copy of the GNU Library General Public License
14
along with this library; see the file COPYING.LIB. If not, write to
15
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16
Boston, MA 02110-1301, USA.
22
#include "duchain/tests/duchaintestbase.h"
26
class TestDUChain : public DUChainTestBase
34
void testDeclareFunction();
35
void testDeclareVar();
36
void testDeclareClass();
37
void testClassMemberVar();
38
void testDeclareTypehintFunction();
39
void testDeclareTypehintArrayFunction();
40
void testReturnTypeClass();
41
void testDeclarationReturnType();
42
void testDeclarationReturnTypeInRecursingFunction();
43
void testReturnTypeViaMember();
44
void testDeclarationMultipleReturnTypes();
45
void testDeclarationReturnTypeDocBlock();
46
void testDeclarationReturnTypeDocBlockIntegral();
47
void testDeclarationReturnTypeClassChain();
48
void testClassImplementsInterface();
49
void testClassExtends();
50
void testStaticMethod();
51
void testOwnStaticMethod();
53
void testObjectFunctionCall();
54
void testObjectFunctionCall2();
55
void testObjectFunctionCall3();
56
void testObjectVariable();
57
void testStaticMemberVariable();
58
void testOwnStaticMemberVariable();
59
void testClassConst();
61
void testDefaultFunctionParam();
62
void testGlobalFunction();
63
void testGlobalVariableFromInternalFunctions();
64
void testNewObjectFromOtherFile();
65
void testUnknownReturnType();
66
void testStaticFunctionCallFromOtherFile();
67
void testClassConstantFromOtherFile();
68
void testGlobalFunctionCallFromOtherFile();
69
void testConstantFromOtherFile();
71
void testInternalFunctions();
75
void testFunctionDocBlock();
76
void testVariableDocBlock();
77
void testFunctionDocBlockParams();
78
void testMemberFunctionDocBlockParams();
79
void testForeachLoop();
80
void testPhp4StyleConstructor();
81
void testConstructor();
82
void testDestructor();
83
void testFunctionInFunction();
84
void testObjectWithClassName();
85
void testLargeNumberOfDeclarations();
86
void testStaticVariable();
87
void testReturnTypeTwoDeclarations();
88
void testGlobalVariableNotVisibleInFunction();
89
void testGlobalVariableInFunction();
90
void testSuperglobalInFunction();
91
void testReturnWithoutFunction();
92
void testCircularInheritance();
93
void testFindDeclarations();
94
void testMemberTypeAfterMethod();
95
void testCatchDeclaration();
96
void testResourceType();
97
void testForeachIterator();
98
void testForeachIterator2();
99
void testForeachIterator3();
100
void testReturnThis();
101
void testUnsureReturnType();
102
void testUnsureReturnType2();
103
void testUnsureReturnType3();
104
void testUnsureReturnType4();
105
void testDeclareMemberOutOfClass();
106
void testDeclareMemberInClassMethod();
107
void testThisRedeclaration();
108
void testImplicitArrayDeclaration();
109
void testImplicitReferenceDeclaration();
110
void testClassContextRange();
111
void testLateClassMembers();
113
void testAlternateDocCommentTypeHints();
114
void testFindFunctionArgs();
115
void testUndeclaredPropertyInString();
116
void testUndeclaredVarPropertyInString();