Arbit - project tracking

PHP Depend

Browse source code

File: / tests/ PHP/ Depend/ Code/ AllTests.php

Type
text/plain text/plain
Last Author
mapi
Version
1317
Line Rev. Author Source
1 18 mapi <?php
2 mapi /**
3 mapi * This file is part of PHP_Depend.
4 560 mapi *
5 18 mapi * PHP Version 5
6 mapi *
7 1030 mapi * Copyright (c) 2008-2010, Manuel Pichler <mapi@pdepend.org>.
8 18 mapi * All rights reserved.
9 mapi *
10 mapi * Redistribution and use in source and binary forms, with or without
11 mapi * modification, are permitted provided that the following conditions
12 mapi * are met:
13 mapi *
14 mapi * * Redistributions of source code must retain the above copyright
15 mapi * notice, this list of conditions and the following disclaimer.
16 mapi *
17 mapi * * Redistributions in binary form must reproduce the above copyright
18 mapi * notice, this list of conditions and the following disclaimer in
19 mapi * the documentation and/or other materials provided with the
20 mapi * distribution.
21 mapi *
22 mapi * * Neither the name of Manuel Pichler nor the names of his
23 mapi * contributors may be used to endorse or promote products derived
24 mapi * from this software without specific prior written permission.
25 mapi *
26 mapi * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
27 mapi * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
28 mapi * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
29 mapi * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
30 mapi * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
31 mapi * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
32 mapi * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
33 mapi * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
34 mapi * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
35 mapi * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
36 mapi * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
37 mapi * POSSIBILITY OF SUCH DAMAGE.
38 mapi *
39 mapi * @category QualityAssurance
40 mapi * @package PHP_Depend
41 269 mapi * @author Manuel Pichler <mapi@pdepend.org>
42 1030 mapi * @copyright 2008-2010 Manuel Pichler. All rights reserved.
43 18 mapi * @license http://www.opensource.org/licenses/bsd-license.php BSD License
44 mapi * @version SVN: $Id: AllTests.php 1317 2010-06-17 11:38:24Z mapi $
45 823 mapi * @link http://pdepend.org/
46 18 mapi */
47 mapi
48 52 mapi if (defined('PHPUnit_MAIN_METHOD') === false) {
49 mapi define('PHPUnit_MAIN_METHOD', 'PHP_Depend_Code_AllTests::main');
50 18 mapi }
51 mapi
52 mapi require_once 'PHPUnit/Framework/TestSuite.php';
53 mapi require_once 'PHPUnit/TextUI/TestRunner.php';
54 mapi
55 941 mapi require_once dirname(__FILE__) . '/ASTAllocationExpressionTest.php';
56 mapi require_once dirname(__FILE__) . '/ASTArgumentsTest.php';
57 1235 mapi require_once dirname(__FILE__) . '/ASTArrayIndexExpressionTest.php';
58 967 mapi require_once dirname(__FILE__) . '/ASTArrayTypeTest.php';
59 990 mapi require_once dirname(__FILE__) . '/ASTAssignmentExpressionTest.php';
60 975 mapi require_once dirname(__FILE__) . '/ASTBooleanAndExpressionTest.php';
61 mapi require_once dirname(__FILE__) . '/ASTBooleanOrExpressionTest.php';
62 1131 mapi require_once dirname(__FILE__) . '/ASTBreakStatementTest.php';
63 1283 mapi require_once dirname(__FILE__) . '/ASTCastExpressionTest.php';
64 974 mapi require_once dirname(__FILE__) . '/ASTCatchStatementTest.php';
65 930 mapi require_once dirname(__FILE__) . '/ASTClassOrInterfaceReferenceTest.php';
66 967 mapi require_once dirname(__FILE__) . '/ASTClassReferenceTest.php';
67 1178 mapi require_once dirname(__FILE__) . '/ASTCloneExpressionTest.php';
68 1144 mapi require_once dirname(__FILE__) . '/ASTClosureTest.php';
69 1193 mapi require_once dirname(__FILE__) . '/ASTCommentTest.php';
70 968 mapi require_once dirname(__FILE__) . '/ASTCompoundExpressionTest.php';
71 941 mapi require_once dirname(__FILE__) . '/ASTCompoundVariableTest.php';
72 976 mapi require_once dirname(__FILE__) . '/ASTConditionalExpressionTest.php';
73 970 mapi require_once dirname(__FILE__) . '/ASTConstantDeclaratorTest.php';
74 932 mapi require_once dirname(__FILE__) . '/ASTConstantDefinitionTest.php';
75 941 mapi require_once dirname(__FILE__) . '/ASTConstantPostfixTest.php';
76 mapi require_once dirname(__FILE__) . '/ASTConstantTest.php';
77 1130 mapi require_once dirname(__FILE__) . '/ASTContinueStatementTest.php';
78 1144 mapi require_once dirname(__FILE__) . '/ASTDoWhileStatementTest.php';
79 1178 mapi require_once dirname(__FILE__) . '/ASTEchoStatementTest.php';
80 974 mapi require_once dirname(__FILE__) . '/ASTElseIfStatementTest.php';
81 1178 mapi require_once dirname(__FILE__) . '/ASTEvalExpressionTest.php';
82 mapi require_once dirname(__FILE__) . '/ASTExitExpressionTest.php';
83 988 mapi require_once dirname(__FILE__) . '/ASTExpressionTest.php';
84 932 mapi require_once dirname(__FILE__) . '/ASTFieldDeclarationTest.php';
85 984 mapi require_once dirname(__FILE__) . '/ASTForInitTest.php';
86 1152 mapi require_once dirname(__FILE__) . '/ASTForUpdateTest.php';
87 974 mapi require_once dirname(__FILE__) . '/ASTForStatementTest.php';
88 mapi require_once dirname(__FILE__) . '/ASTForeachStatementTest.php';
89 941 mapi require_once dirname(__FILE__) . '/ASTFunctionPostfixTest.php';
90 1178 mapi require_once dirname(__FILE__) . '/ASTGlobalStatementTest.php';
91 mapi require_once dirname(__FILE__) . '/ASTGotoStatementTest.php';
92 1221 mapi require_once dirname(__FILE__) . '/ASTHeredocTest.php';
93 974 mapi require_once dirname(__FILE__) . '/ASTIfStatementTest.php';
94 1242 mapi require_once dirname(__FILE__) . '/ASTIncludeExpressionTest.php';
95 976 mapi require_once dirname(__FILE__) . '/ASTInstanceOfExpressionTest.php';
96 1226 mapi require_once dirname(__FILE__) . '/ASTIssetExpressionTest.php';
97 990 mapi require_once dirname(__FILE__) . '/ASTMemberPrimaryPrefixTest.php';
98 941 mapi require_once dirname(__FILE__) . '/ASTMethodPostfixTest.php';
99 1178 mapi require_once dirname(__FILE__) . '/ASTLabelStatementTest.php';
100 1223 mapi require_once dirname(__FILE__) . '/ASTListExpressionTest.php';
101 941 mapi require_once dirname(__FILE__) . '/ASTLiteralTest.php';
102 976 mapi require_once dirname(__FILE__) . '/ASTLogicalAndExpressionTest.php';
103 mapi require_once dirname(__FILE__) . '/ASTLogicalOrExpressionTest.php';
104 mapi require_once dirname(__FILE__) . '/ASTLogicalXorExpressionTest.php';
105 1314 mapi require_once dirname(__FILE__) . '/ASTPostfixExpressionTest.php';
106 1317 mapi require_once dirname(__FILE__) . '/ASTPreDecrementExpressionTest.php';
107 1314 mapi require_once dirname(__FILE__) . '/ASTPreIncrementExpressionTest.php';
108 1193 mapi require_once dirname(__FILE__) . '/ASTPrimitiveTypeTest.php';
109 941 mapi require_once dirname(__FILE__) . '/ASTPropertyPostfixTest.php';
110 1240 mapi require_once dirname(__FILE__) . '/ASTRequireExpressionTest.php';
111 1119 mapi require_once dirname(__FILE__) . '/ASTReturnStatementTest.php';
112 1135 mapi require_once dirname(__FILE__) . '/ASTScopeStatementTest.php';
113 1155 mapi require_once dirname(__FILE__) . '/ASTScopeTest.php';
114 941 mapi require_once dirname(__FILE__) . '/ASTStaticReferenceTest.php';
115 932 mapi require_once dirname(__FILE__) . '/ASTStaticVariableDeclarationTest.php';
116 1034 mapi require_once dirname(__FILE__) . '/ASTStringTest.php';
117 1235 mapi require_once dirname(__FILE__) . '/ASTStringIndexExpressionTest.php';
118 988 mapi require_once dirname(__FILE__) . '/ASTSwitchStatementTest.php';
119 975 mapi require_once dirname(__FILE__) . '/ASTSwitchLabelTest.php';
120 1178 mapi require_once dirname(__FILE__) . '/ASTThrowStatementTest.php';
121 1139 mapi require_once dirname(__FILE__) . '/ASTTryStatementTest.php';
122 1193 mapi require_once dirname(__FILE__) . '/ASTTypeNodeTest.php';
123 1178 mapi require_once dirname(__FILE__) . '/ASTUnsetStatementTest.php';
124 1015 mapi require_once dirname(__FILE__) . '/ASTVariableTest.php';
125 932 mapi require_once dirname(__FILE__) . '/ASTVariableDeclaratorTest.php';
126 1178 mapi require_once dirname(__FILE__) . '/ASTVariableVariableTest.php';
127 974 mapi require_once dirname(__FILE__) . '/ASTWhileStatementTest.php';
128 932 mapi
129 33 mapi require_once dirname(__FILE__) . '/ClassTest.php';
130 130 mapi require_once dirname(__FILE__) . '/FileTest.php';
131 36 mapi require_once dirname(__FILE__) . '/FunctionTest.php';
132 150 mapi require_once dirname(__FILE__) . '/InterfaceTest.php';
133 37 mapi require_once dirname(__FILE__) . '/MethodTest.php';
134 39 mapi require_once dirname(__FILE__) . '/NodeIteratorTest.php';
135 27 mapi require_once dirname(__FILE__) . '/PackageTest.php';
136 696 mapi require_once dirname(__FILE__) . '/ParameterTest.php';
137 150 mapi require_once dirname(__FILE__) . '/PropertyTest.php';
138 932 mapi
139 mapi require_once dirname(__FILE__) . '/ReflectionClassTest.php';
140 700 mapi require_once dirname(__FILE__) . '/ReflectionParameterTest.php';
141 902 mapi require_once dirname(__FILE__) . '/ReflectionPropertyTest.php';
142 932 mapi
143 574 mapi require_once dirname(__FILE__) . '/Filter/AllTests.php';
144 18 mapi
145 mapi /**
146 mapi * Main test suite for the PHP_Depend_Code package.
147 mapi *
148 mapi * @category QualityAssurance
149 mapi * @package PHP_Depend
150 269 mapi * @author Manuel Pichler <mapi@pdepend.org>
151 1030 mapi * @copyright 2008-2010 Manuel Pichler. All rights reserved.
152 18 mapi * @license http://www.opensource.org/licenses/bsd-license.php BSD License
153 mapi * @version Release: @package_version@
154 823 mapi * @link http://pdepend.org/
155 18 mapi */
156 mapi class PHP_Depend_Code_AllTests
157 mapi {
158 mapi /**
159 mapi * Test suite main method.
160 mapi *
161 mapi * @return void
162 mapi */
163 mapi public static function main()
164 mapi {
165 mapi PHPUnit_TextUI_TestRunner::run(self::suite());
166 mapi }
167 560 mapi
168 18 mapi /**
169 mapi * Creates the phpunit test suite for this package.
170 mapi *
171 mapi * @return PHPUnit_Framework_TestSuite
172 mapi */
173 mapi public static function suite()
174 mapi {
175 mapi $suite = new PHPUnit_Framework_TestSuite('PHP_Depend_Code - AllTests');
176 792 mapi
177 574 mapi $suite->addTest(PHP_Depend_Code_Filter_AllTests::suite());
178 822 mapi
179 33 mapi $suite->addTestSuite('PHP_Depend_Code_ClassTest');
180 130 mapi $suite->addTestSuite('PHP_Depend_Code_FileTest');
181 36 mapi $suite->addTestSuite('PHP_Depend_Code_FunctionTest');
182 150 mapi $suite->addTestSuite('PHP_Depend_Code_InterfaceTest');
183 37 mapi $suite->addTestSuite('PHP_Depend_Code_MethodTest');
184 39 mapi $suite->addTestSuite('PHP_Depend_Code_NodeIteratorTest');
185 27 mapi $suite->addTestSuite('PHP_Depend_Code_PackageTest');
186 150 mapi $suite->addTestSuite('PHP_Depend_Code_PropertyTest');
187 696 mapi $suite->addTestSuite('PHP_Depend_Code_ParameterTest');
188 18 mapi
189 941 mapi $suite->addTestSuite('PHP_Depend_Code_ASTAllocationExpressionTest');
190 mapi $suite->addTestSuite('PHP_Depend_Code_ASTArgumentsTest');
191 1235 mapi $suite->addTestSuite('PHP_Depend_Code_ASTArrayIndexExpressionTest');
192 967 mapi $suite->addTestSuite('PHP_Depend_Code_ASTArrayTypeTest');
193 990 mapi $suite->addTestSuite('PHP_Depend_Code_ASTAssignmentExpressionTest');
194 975 mapi $suite->addTestSuite('PHP_Depend_Code_ASTBooleanAndExpressionTest');
195 mapi $suite->addTestSuite('PHP_Depend_Code_ASTBooleanOrExpressionTest');
196 1131 mapi $suite->addTestSuite('PHP_Depend_Code_ASTBreakStatementTest');
197 1283 mapi $suite->addTestSuite('PHP_Depend_Code_ASTCastExpressionTest');
198 974 mapi $suite->addTestSuite('PHP_Depend_Code_ASTCatchStatementTest');
199 932 mapi $suite->addTestSuite('PHP_Depend_Code_ASTClassOrInterfaceReferenceTest');
200 967 mapi $suite->addTestSuite('PHP_Depend_Code_ASTClassReferenceTest');
201 1178 mapi $suite->addTestSuite('PHP_Depend_Code_ASTCloneExpressionTest');
202 1144 mapi $suite->addTestSuite('PHP_Depend_Code_ASTClosureTest');
203 1193 mapi $suite->addTestSuite('PHP_Depend_Code_ASTCommentTest');
204 968 mapi $suite->addTestSuite('PHP_Depend_Code_ASTCompoundExpressionTest');
205 941 mapi $suite->addTestSuite('PHP_Depend_Code_ASTCompoundVariableTest');
206 976 mapi $suite->addTestSuite('PHP_Depend_Code_ASTConditionalExpressionTest');
207 970 mapi $suite->addTestSuite('PHP_Depend_Code_ASTConstantDeclaratorTest');
208 932 mapi $suite->addTestSuite('PHP_Depend_Code_ASTConstantDefinitionTest');
209 941 mapi $suite->addTestSuite('PHP_Depend_Code_ASTConstantPostfixTest');
210 mapi $suite->addTestSuite('PHP_Depend_Code_ASTConstantTest');
211 1130 mapi $suite->addTestSuite('PHP_Depend_Code_ASTContinueStatementTest');
212 1144 mapi $suite->addTestSuite('PHP_Depend_Code_ASTDoWhileStatementTest');
213 1178 mapi $suite->addTestSuite('PHP_Depend_Code_ASTEchoStatementTest');
214 974 mapi $suite->addTestSuite('PHP_Depend_Code_ASTElseIfStatementTest');
215 1178 mapi $suite->addTestSuite('PHP_Depend_Code_ASTEvalExpressionTest');
216 mapi $suite->addTestSuite('PHP_Depend_Code_ASTExitExpressionTest');
217 988 mapi $suite->addTestSuite('PHP_Depend_Code_ASTExpressionTest');
218 932 mapi $suite->addTestSuite('PHP_Depend_Code_ASTFieldDeclarationTest');
219 984 mapi $suite->addTestSuite('PHP_Depend_Code_ASTForInitTest');
220 1152 mapi $suite->addTestSuite('PHP_Depend_Code_ASTForUpdateTest');
221 974 mapi $suite->addTestSuite('PHP_Depend_Code_ASTForStatementTest');
222 mapi $suite->addTestSuite('PHP_Depend_Code_ASTForeachStatementTest');
223 941 mapi $suite->addTestSuite('PHP_Depend_Code_ASTFunctionPostfixTest');
224 1178 mapi $suite->addTestSuite('PHP_Depend_Code_ASTGlobalStatementTest');
225 mapi $suite->addTestSuite('PHP_Depend_Code_ASTGotoStatementTest');
226 1221 mapi $suite->addTestSuite('PHP_Depend_Code_ASTHeredocTest');
227 974 mapi $suite->addTestSuite('PHP_Depend_Code_ASTIfStatementTest');
228 1242 mapi $suite->addTestSuite('PHP_Depend_Code_ASTIncludeExpressionTest');
229 976 mapi $suite->addTestSuite('PHP_Depend_Code_ASTInstanceOfExpressionTest');
230 1226 mapi $suite->addTestSuite('PHP_Depend_Code_ASTIssetExpressionTest');
231 941 mapi $suite->addTestSuite('PHP_Depend_Code_ASTLiteralTest');
232 1178 mapi $suite->addTestSuite('PHP_Depend_Code_ASTLabelStatementTest');
233 1223 mapi $suite->addTestSuite('PHP_Depend_Code_ASTListExpressionTest');
234 976 mapi $suite->addTestSuite('PHP_Depend_Code_ASTLogicalAndExpressionTest');
235 mapi $suite->addTestSuite('PHP_Depend_Code_ASTLogicalOrExpressionTest');
236 mapi $suite->addTestSuite('PHP_Depend_Code_ASTLogicalXorExpressionTest');
237 990 mapi $suite->addTestSuite('PHP_Depend_Code_ASTMemberPrimaryPrefixTest');
238 941 mapi $suite->addTestSuite('PHP_Depend_Code_ASTMethodPostfixTest');
239 1314 mapi $suite->addTestSuite('PHP_Depend_Code_ASTPostfixExpressionTest');
240 1317 mapi $suite->addTestSuite('PHP_Depend_Code_ASTPreDecrementExpressionTest');
241 1314 mapi $suite->addTestSuite('PHP_Depend_Code_ASTPreIncrementExpressionTest');
242 1193 mapi $suite->addTestSuite('PHP_Depend_Code_ASTPrimitiveTypeTest');
243 941 mapi $suite->addTestSuite('PHP_Depend_Code_ASTPropertyPostfixTest');
244 1240 mapi $suite->addTestSuite('PHP_Depend_Code_ASTRequireExpressionTest');
245 1119 mapi $suite->addTestSuite('PHP_Depend_Code_ASTReturnStatementTest');
246 1135 mapi $suite->addTestSuite('PHP_Depend_Code_ASTScopeStatementTest');
247 1155 mapi $suite->addTestSuite('PHP_Depend_Code_ASTScopeTest');
248 941 mapi $suite->addTestSuite('PHP_Depend_Code_ASTStaticReferenceTest');
249 930 mapi $suite->addTestSuite('PHP_Depend_Code_ASTStaticVariableDeclarationTest');
250 1034 mapi $suite->addTestSuite('PHP_Depend_Code_ASTStringTest');
251 1235 mapi $suite->addTestSuite('PHP_Depend_Code_ASTStringIndexExpressionTest');
252 988 mapi $suite->addTestSuite('PHP_Depend_Code_ASTSwitchStatementTest');
253 975 mapi $suite->addTestSuite('PHP_Depend_Code_ASTSwitchLabelTest');
254 1178 mapi $suite->addTestSuite('PHP_Depend_Code_ASTThrowStatementTest');
255 1139 mapi $suite->addTestSuite('PHP_Depend_Code_ASTTryStatementTest');
256 1193 mapi $suite->addTestSuite('PHP_Depend_Code_ASTTypeNodeTest');
257 1178 mapi $suite->addTestSuite('PHP_Depend_Code_ASTUnsetStatementTest');
258 1015 mapi $suite->addTestSuite('PHP_Depend_Code_ASTVariableTest');
259 930 mapi $suite->addTestSuite('PHP_Depend_Code_ASTVariableDeclaratorTest');
260 1178 mapi $suite->addTestSuite('PHP_Depend_Code_ASTVariableVariableTest');
261 974 mapi $suite->addTestSuite('PHP_Depend_Code_ASTWhileStatementTest');
262 915 mapi
263 932 mapi $suite->addTestSuite('PHP_Depend_Code_ReflectionClassTest');
264 700 mapi $suite->addTestSuite('PHP_Depend_Code_ReflectionParameterTest');
265 902 mapi $suite->addTestSuite('PHP_Depend_Code_ReflectionPropertyTest');
266 700 mapi
267 18 mapi return $suite;
268 mapi }
269 mapi }
270 mapi
271 mapi if (PHPUnit_MAIN_METHOD === 'PHP_Depend_Code_AllTests::main') {
272 mapi PHP_Depend_Code_AllTests::main();
273 mapi }