Adding enclosures now treats type and length parameters as optional for Atom, but...
[zend.git] / tests / Zend / AllTests.php
blob149a06bebb0b462221b42649be49d1687429f0fb
1 <?php
3 /**
4 * Zend Framework
6 * LICENSE
8 * This source file is subject to the new BSD license that is bundled
9 * with this package in the file LICENSE.txt.
10 * It is also available through the world-wide-web at this URL:
11 * http://framework.zend.com/license/new-bsd
12 * If you did not receive a copy of the license and are unable to
13 * obtain it through the world-wide-web, please send an email
14 * to license@zend.com so we can send you a copy immediately.
16 * @category Zend
17 * @package Zend
18 * @subpackage UnitTests
19 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
20 * @license http://framework.zend.com/license/new-bsd New BSD License
21 * @version $Id$
24 require_once dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'TestHelper.php';
26 if (!defined('PHPUnit_MAIN_METHOD')) {
27 define('PHPUnit_MAIN_METHOD', 'Zend_AllTests::main');
30 require_once 'Zend/Acl/AclTest.php';
31 require_once 'Zend/Amf/AllTests.php';
32 require_once 'Zend/Application/AllTests.php';
33 require_once 'Zend/AuthTest.php';
34 require_once 'Zend/Auth/AllTests.php';
35 require_once 'Zend/Barcode/AllTests.php';
36 require_once 'Zend/Cache/AllTests.php';
37 require_once 'Zend/Captcha/AllTests.php';
38 require_once 'Zend/CodeGenerator/Php/AllTests.php';
39 require_once 'Zend/Db/AllTests.php';
40 require_once 'Zend/Dom/AllTests.php';
41 require_once 'Zend/ConfigTest.php';
42 require_once 'Zend/Config/AllTests.php';
43 require_once 'Zend/Console/GetoptTest.php';
44 require_once 'Zend/Controller/AllTests.php';
45 require_once 'Zend/CurrencyTest.php';
46 require_once 'Zend/DateTest.php';
47 require_once 'Zend/Date/AllTests.php';
48 require_once 'Zend/DebugTest.php';
49 require_once 'Zend/ExceptionTest.php';
50 require_once 'Zend/Feed/AllTests.php';
51 require_once 'Zend/File/AllTests.php';
52 require_once 'Zend/FilterTest.php';
53 require_once 'Zend/Filter/AllTests.php';
54 require_once 'Zend/Form/AllTests.php';
55 require_once 'Zend/Gdata/AllTests.php';
56 require_once 'Zend/Http/AllTests.php';
57 require_once 'Zend/InfoCard/AllTests.php';
58 require_once 'Zend/JsonTest.php';
59 require_once 'Zend/Json/AllTests.php';
60 require_once 'Zend/Layout/AllTests.php';
61 require_once 'Zend/Ldap/AllTests.php';
62 require_once 'Zend/LoaderTest.php';
63 require_once 'Zend/Loader/AllTests.php';
64 require_once 'Zend/LocaleTest.php';
65 require_once 'Zend/Locale/AllTests.php';
66 require_once 'Zend/Log/AllTests.php';
67 require_once 'Zend/MailTest.php';
68 require_once 'Zend/Mail/AllTests.php';
69 require_once 'Zend/Markup/AllTests.php';
70 require_once 'Zend/Measure/AllTests.php';
71 require_once 'Zend/Memory/AllTests.php';
72 require_once 'Zend/MimeTest.php';
73 require_once 'Zend/Mime/AllTests.php';
74 require_once 'Zend/Oauth/AllTests.php';
75 require_once 'Zend/OpenIdTest.php';
76 require_once 'Zend/OpenId/AllTests.php';
77 require_once 'Zend/Paginator/AllTests.php';
78 require_once 'Zend/Pdf/AllTests.php';
79 require_once 'Zend/RegistryTest.php';
80 require_once 'Zend/Rest/AllTests.php';
81 require_once 'Zend/Queue/AllTests.php';
82 require_once 'Zend/Search/Lucene/AllTests.php';
83 require_once 'Zend/Serializer/AllTests.php';
84 require_once 'Zend/Server/AllTests.php';
85 require_once 'Zend/Service/AllTests.php';
86 require_once 'Zend/Session/AllTests.php';
87 require_once 'Zend/Soap/AllTests.php';
88 require_once 'Zend/Tag/AllTests.php';
89 require_once 'Zend/Test/AllTests.php';
90 require_once 'Zend/Text/AllTests.php';
91 require_once 'Zend/TimeSyncTest.php';
92 require_once 'Zend/TranslateTest.php';
93 require_once 'Zend/Translate/Adapter/AllTests.php';
94 require_once 'Zend/UriTest.php';
95 require_once 'Zend/Uri/AllTests.php';
96 require_once 'Zend/ValidateTest.php';
97 require_once 'Zend/Validate/AllTests.php';
98 require_once 'Zend/VersionTest.php';
99 require_once 'Zend/ViewTest.php';
100 require_once 'Zend/View/AllTests.php';
101 if (PHP_OS != 'AIX') {
102 require_once 'Zend/Wildfire/AllTests.php';
104 require_once 'Zend/XmlRpc/AllTests.php';
107 * @category Zend
108 * @package Zend
109 * @subpackage UnitTests
110 * @group Zend
111 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
112 * @license http://framework.zend.com/license/new-bsd New BSD License
114 class Zend_AllTests
116 public static function main()
118 // Run buffered tests as a separate suite first
119 ob_start();
120 PHPUnit_TextUI_TestRunner::run(self::suiteBuffered());
121 if (ob_get_level()) {
122 ob_end_flush();
125 PHPUnit_TextUI_TestRunner::run(self::suite());
129 * Buffered test suites
131 * These tests require no output be sent prior to running as they rely
132 * on internal PHP functions.
134 * @return PHPUnit_Framework_TestSuite
136 public static function suiteBuffered()
138 $suite = new PHPUnit_Framework_TestSuite('Zend Framework - Zend - Buffered Test Suites');
140 // These tests require no output be sent prior to running as they rely
141 // on internal PHP functions
142 $suite->addTestSuite('Zend_OpenIdTest');
143 $suite->addTest(Zend_OpenId_AllTests::suite());
144 $suite->addTest(Zend_Session_AllTests::suite());
145 $suite->addTest(Zend_Soap_AllTests::suite());
147 return $suite;
151 * Regular suite
153 * All tests except those that require output buffering.
155 * @return PHPUnit_Framework_TestSuite
157 public static function suite()
159 $suite = new PHPUnit_Framework_TestSuite('Zend Framework - Zend');
161 // Running this early to ensure that the test suite hasn't used too
162 // much memory by the time it gets to this test.
163 $suite->addTest(Zend_Memory_AllTests::suite());
165 // Start remaining tests...
166 $suite->addTestSuite('Zend_Acl_AclTest');
167 $suite->addTest(Zend_Amf_AllTests::suite());
168 $suite->addTest(Zend_Application_AllTests::suite());
169 $suite->addTestSuite('Zend_AuthTest');
170 $suite->addTest(Zend_Auth_AllTests::suite());
171 $suite->addTest(Zend_Barcode_AllTests::suite());
172 $suite->addTest(Zend_Cache_AllTests::suite());
173 $suite->addTest(Zend_Captcha_AllTests::suite());
174 $suite->addTest(Zend_CodeGenerator_Php_AllTests::suite());
175 $suite->addTestSuite('Zend_ConfigTest');
176 $suite->addTest(Zend_Config_AllTests::suite());
177 $suite->addTestSuite('Zend_Console_GetoptTest');
178 $suite->addTest(Zend_Controller_AllTests::suite());
179 $suite->addTestSuite('Zend_CurrencyTest');
180 $suite->addTestSuite('Zend_DateTest');
181 $suite->addTest(Zend_Date_AllTests::suite());
182 $suite->addTest(Zend_Db_AllTests::suite());
183 $suite->addTestSuite('Zend_DebugTest');
184 $suite->addTest(Zend_Dom_AllTests::suite());
185 $suite->addTestSuite('Zend_ExceptionTest');
186 $suite->addTest(Zend_Feed_AllTests::suite());
187 $suite->addTest(Zend_File_AllTests::suite());
188 $suite->addTestSuite('Zend_FilterTest');
189 $suite->addTest(Zend_Filter_AllTests::suite());
190 $suite->addTest(Zend_Form_AllTests::suite());
191 $suite->addTest(Zend_Gdata_AllTests::suite());
192 $suite->addTest(Zend_Http_AllTests::suite());
193 $suite->addTest(Zend_InfoCard_AllTests::suite());
194 $suite->addTestSuite('Zend_JsonTest');
195 $suite->addTest(Zend_Json_AllTests::suite());
196 $suite->addTest(Zend_Layout_AllTests::suite());
197 $suite->addTest(Zend_Ldap_AllTests::suite());
198 $suite->addTestSuite('Zend_LoaderTest');
199 $suite->addTest(Zend_Loader_AllTests::suite());
200 $suite->addTestSuite('Zend_LocaleTest');
201 $suite->addTest(Zend_Locale_AllTests::suite());
202 $suite->addTest(Zend_Log_AllTests::suite());
203 $suite->addTestSuite('Zend_MailTest');
204 $suite->addTest(Zend_Mail_AllTests::suite());
205 $suite->addTest(Zend_Markup_AllTests::suite());
206 $suite->addTest(Zend_Measure_AllTests::suite());
207 $suite->addTestSuite('Zend_MimeTest');
208 $suite->addTest(Zend_Mime_AllTests::suite());
209 $suite->addTest(Zend_Oauth_AllTests::suite());
210 $suite->addTest(Zend_Paginator_AllTests::suite());
211 $suite->addTest(Zend_Pdf_AllTests::suite());
212 $suite->addTestSuite('Zend_RegistryTest');
213 $suite->addTest(Zend_Rest_AllTests::suite());
214 $suite->addTest(Zend_Queue_AllTests::suite());
215 $suite->addTest(Zend_Search_Lucene_AllTests::suite());
216 $suite->addTest(Zend_Serializer_AllTests::suite());
217 $suite->addTest(Zend_Server_AllTests::suite());
218 $suite->addTest(Zend_Service_AllTests::suite());
219 $suite->addTest(Zend_Tag_AllTests::suite());
220 $suite->addTest(Zend_Test_AllTests::suite());
221 $suite->addTest(Zend_Text_AllTests::suite());
222 $suite->addTestSuite('Zend_TimeSyncTest');
223 $suite->addTestSuite('Zend_TranslateTest');
224 $suite->addTest(Zend_Translate_Adapter_AllTests::suite());
225 $suite->addTestSuite('Zend_UriTest');
226 $suite->addTest(Zend_Uri_AllTests::suite());
227 $suite->addTestSuite('Zend_ValidateTest');
228 $suite->addTest(Zend_Validate_AllTests::suite());
229 $suite->addTestSuite('Zend_ViewTest');
230 $suite->addTest(Zend_View_AllTests::suite());
231 $suite->addTestSuite('Zend_VersionTest');
232 if (PHP_OS != 'AIX') {
233 $suite->addTest(Zend_Wildfire_AllTests::suite());
235 $suite->addTest(Zend_XmlRpc_AllTests::suite());
237 return $suite;
241 if (PHPUnit_MAIN_METHOD == 'Zend_AllTests::main') {
242 Zend_AllTests::main();