7 * This source file is subject to the new BSD license that is bundled
8 * with this package in the file LICENSE.txt.
9 * It is also available through the world-wide-web at this URL:
10 * http://framework.zend.com/license/new-bsd
11 * If you did not receive a copy of the license and are unable to
12 * obtain it through the world-wide-web, please send an email
13 * to license@zend.com so we can send you a copy immediately.
16 * @package Zend_Filter
17 * @subpackage UnitTests
18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
19 * @license http://framework.zend.com/license/new-bsd New BSD License
23 require_once dirname(dirname(dirname(__FILE__
))) . DIRECTORY_SEPARATOR
. 'TestHelper.php';
25 if (!defined('PHPUnit_MAIN_METHOD')) {
26 define('PHPUnit_MAIN_METHOD', 'Zend_Filter_AllTests::main');
29 require_once 'Zend/Filter/AlnumTest.php';
30 require_once 'Zend/Filter/AlphaTest.php';
31 require_once 'Zend/Filter/BaseNameTest.php';
32 require_once 'Zend/Filter/BooleanTest.php';
33 require_once 'Zend/Filter/CallbackTest.php';
34 require_once 'Zend/Filter/CompressTest.php';
35 require_once 'Zend/Filter/DecompressTest.php';
36 require_once 'Zend/Filter/DecryptTest.php';
37 require_once 'Zend/Filter/DigitsTest.php';
38 require_once 'Zend/Filter/DirTest.php';
39 require_once 'Zend/Filter/EncryptTest.php';
40 require_once 'Zend/Filter/HtmlEntitiesTest.php';
41 require_once 'Zend/Filter/InflectorTest.php';
42 require_once 'Zend/Filter/InputTest.php';
43 require_once 'Zend/Filter/IntTest.php';
44 require_once 'Zend/Filter/LocalizedToNormalizedTest.php';
45 require_once 'Zend/Filter/NormalizedToLocalizedTest.php';
46 require_once 'Zend/Filter/NullTest.php';
47 require_once 'Zend/Filter/PregReplaceTest.php';
48 require_once 'Zend/Filter/RealPathTest.php';
49 require_once 'Zend/Filter/StringToLowerTest.php';
50 require_once 'Zend/Filter/StringToUpperTest.php';
51 require_once 'Zend/Filter/StringTrimTest.php';
52 require_once 'Zend/Filter/StripNewlinesTest.php';
53 require_once 'Zend/Filter/StripTagsTest.php';
56 require_once 'Zend/Filter/Compress/Bz2Test.php';
57 require_once 'Zend/Filter/Compress/GzTest.php';
58 require_once 'Zend/Filter/Compress/LzfTest.php';
59 require_once 'Zend/Filter/Compress/RarTest.php';
60 require_once 'Zend/Filter/Compress/TarTest.php';
61 require_once 'Zend/Filter/Compress/ZipTest.php';
63 require_once 'Zend/Filter/Encrypt/McryptTest.php';
64 require_once 'Zend/Filter/Encrypt/OpensslTest.php';
66 require_once 'Zend/Filter/File/DecryptTest.php';
67 require_once 'Zend/Filter/File/EncryptTest.php';
68 require_once 'Zend/Filter/File/LowerCaseTest.php';
69 require_once 'Zend/Filter/File/RenameTest.php';
70 require_once 'Zend/Filter/File/UpperCaseTest.php';
72 require_once 'Zend/Filter/Word/CamelCaseToDashTest.php';
73 require_once 'Zend/Filter/Word/CamelCaseToSeparatorTest.php';
74 require_once 'Zend/Filter/Word/CamelCaseToUnderscoreTest.php';
75 require_once 'Zend/Filter/Word/DashToCamelCaseTest.php';
76 require_once 'Zend/Filter/Word/DashToSeparatorTest.php';
77 require_once 'Zend/Filter/Word/DashToUnderscoreTest.php';
78 require_once 'Zend/Filter/Word/SeparatorToCamelCaseTest.php';
79 require_once 'Zend/Filter/Word/SeparatorToDashTest.php';
80 require_once 'Zend/Filter/Word/SeparatorToSeparatorTest.php';
81 require_once 'Zend/Filter/Word/UnderscoreToCamelCaseTest.php';
82 require_once 'Zend/Filter/Word/UnderscoreToDashTest.php';
83 require_once 'Zend/Filter/Word/UnderscoreToSeparatorTest.php';
86 require_once 'Zend/Filter/Compress/AllTests.php';
87 require_once 'Zend/Filter/Encrypt/AllTests.php';
88 require_once 'Zend/Filter/File/AllTests.php';
89 require_once 'Zend/Filter/Word/AllTests.php';
93 * @package Zend_Filter
94 * @subpackage UnitTests
95 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
96 * @license http://framework.zend.com/license/new-bsd New BSD License
99 class Zend_Filter_AllTests
102 * Runs this test suite
106 public static function main()
108 PHPUnit_TextUI_TestRunner
::run(self
::suite());
112 * Creates and returns this test suite
114 * @return PHPUnit_Framework_TestSuite
116 public static function suite()
118 $suite = new PHPUnit_Framework_TestSuite('Zend Framework - Zend_Filter');
120 $suite->addTestSuite('Zend_Filter_AlnumTest');
121 $suite->addTestSuite('Zend_Filter_AlphaTest');
122 $suite->addTestSuite('Zend_Filter_BaseNameTest');
123 $suite->addTestSuite('Zend_Filter_BooleanTest');
124 $suite->addTestSuite('Zend_Filter_CallbackTest');
125 $suite->addTestSuite('Zend_Filter_CompressTest');
126 $suite->addTestSuite('Zend_Filter_DecompressTest');
127 $suite->addTestSuite('Zend_Filter_DecryptTest');
128 $suite->addTestSuite('Zend_Filter_DigitsTest');
129 $suite->addTestSuite('Zend_Filter_DirTest');
130 $suite->addTestSuite('Zend_Filter_EncryptTest');
131 $suite->addTestSuite('Zend_Filter_HtmlEntitiesTest');
132 $suite->addTestSuite('Zend_Filter_InflectorTest');
133 $suite->addTestSuite('Zend_Filter_InputTest');
134 $suite->addTestSuite('Zend_Filter_IntTest');
135 $suite->addTestSuite('Zend_Filter_LocalizedToNormalizedTest');
136 $suite->addTestSuite('Zend_Filter_NormalizedToLocalizedTest');
137 $suite->addTestSuite('Zend_Filter_NullTest');
138 $suite->addTestSuite('Zend_Filter_PregReplaceTest');
139 $suite->addTestSuite('Zend_Filter_RealPathTest');
140 $suite->addTestSuite('Zend_Filter_StringToLowerTest');
141 $suite->addTestSuite('Zend_Filter_StringToUpperTest');
142 $suite->addTestSuite('Zend_Filter_StringTrimTest');
143 $suite->addTestSuite('Zend_Filter_StripNewlinesTest');
144 $suite->addTestSuite('Zend_Filter_StripTagsTest');
147 $suite->addTestSuite('Zend_Filter_Compress_Bz2Test');
148 $suite->addTestSuite('Zend_Filter_Compress_GzTest');
149 $suite->addTestSuite('Zend_Filter_Compress_LzfTest');
150 $suite->addTestSuite('Zend_Filter_Compress_RarTest');
151 $suite->addTestSuite('Zend_Filter_Compress_TarTest');
152 $suite->addTestSuite('Zend_Filter_Compress_ZipTest');
153 $suite->addTestSuite('Zend_Filter_Encrypt_McryptTest');
154 $suite->addTestSuite('Zend_Filter_Encrypt_OpensslTest');
155 $suite->addTestSuite('Zend_Filter_File_DecryptTest');
156 $suite->addTestSuite('Zend_Filter_File_EncryptTest');
157 $suite->addTestSuite('Zend_Filter_File_LowerCaseTest');
158 $suite->addTestSuite('Zend_Filter_File_RenameTest');
159 $suite->addTestSuite('Zend_Filter_File_UpperCaseTest');
160 $suite->addTestSuite('Zend_Filter_Word_CamelCaseToDashTest');
161 $suite->addTestSuite('Zend_Filter_Word_CamelCaseToSeparatorTest');
162 $suite->addTestSuite('Zend_Filter_Word_CamelCaseToUnderscoreTest');
163 $suite->addTestSuite('Zend_Filter_Word_DashToCamelCaseTest');
164 $suite->addTestSuite('Zend_Filter_Word_DashToSeparatorTest');
165 $suite->addTestSuite('Zend_Filter_Word_DashToUnderscoreTest');
166 $suite->addTestSuite('Zend_Filter_Word_SeparatorToCamelCaseTest');
167 $suite->addTestSuite('Zend_Filter_Word_SeparatorToDashTest');
168 $suite->addTestSuite('Zend_Filter_Word_SeparatorToSeparatorTest');
169 $suite->addTestSuite('Zend_Filter_Word_UnderscoreToCamelCaseTest');
170 $suite->addTestSuite('Zend_Filter_Word_UnderscoreToDashTest');
171 $suite->addTestSuite('Zend_Filter_Word_UnderscoreToSeparatorTest');
174 $suite->addTest(Zend_Filter_Compress_AllTests
::suite());
175 $suite->addTest(Zend_Filter_Encrypt_AllTests
::suite());
176 $suite->addTest(Zend_Filter_File_AllTests
::suite());
177 $suite->addTest(Zend_Filter_Word_AllTests
::suite());
183 if (PHPUnit_MAIN_METHOD
== 'Zend_Filter_AllTests::main') {
184 Zend_Filter_AllTests
::main();