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_Validate
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_Validate_AllTests::main');
29 require_once 'Zend/Validate/AbstractTest.php';
30 require_once 'Zend/Validate/AlnumTest.php';
31 require_once 'Zend/Validate/AlphaTest.php';
32 require_once 'Zend/Validate/BarcodeTest.php';
33 require_once 'Zend/Validate/BetweenTest.php';
34 require_once 'Zend/Validate/CallbackTest.php';
35 require_once 'Zend/Validate/CcnumTest.php';
36 require_once 'Zend/Validate/CreditCardTest.php';
37 require_once 'Zend/Validate/DateTest.php';
38 require_once 'Zend/Validate/Db/AllTests.php';
39 require_once 'Zend/Validate/DigitsTest.php';
40 require_once 'Zend/Validate/EmailAddressTest.php';
41 require_once 'Zend/Validate/File/AllTests.php';
42 require_once 'Zend/Validate/FloatTest.php';
43 require_once 'Zend/Validate/GreaterThanTest.php';
44 require_once 'Zend/Validate/HexTest.php';
45 require_once 'Zend/Validate/HostnameTest.php';
46 require_once 'Zend/Validate/IbanTest.php';
47 require_once 'Zend/Validate/IdenticalTest.php';
48 require_once 'Zend/Validate/InArrayTest.php';
49 require_once 'Zend/Validate/IntTest.php';
50 require_once 'Zend/Validate/IpTest.php';
51 require_once 'Zend/Validate/IsbnTest.php';
52 require_once 'Zend/Validate/LessThanTest.php';
53 require_once 'Zend/Validate/MessageTest.php';
54 require_once 'Zend/Validate/NotEmptyTest.php';
55 require_once 'Zend/Validate/PostCodeTest.php';
56 require_once 'Zend/Validate/RegexTest.php';
57 require_once 'Zend/Validate/Sitemap/AllTests.php';
58 require_once 'Zend/Validate/StringLengthTest.php';
62 * @package Zend_Validate
63 * @subpackage UnitTests
64 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
65 * @license http://framework.zend.com/license/new-bsd New BSD License
66 * @group Zend_Validate
68 class Zend_Validate_AllTests
71 * Runs this test suite
75 public static function main()
77 PHPUnit_TextUI_TestRunner
::run(self
::suite());
81 * Creates and returns this test suite
83 * @return PHPUnit_Framework_TestSuite
85 public static function suite()
87 $suite = new PHPUnit_Framework_TestSuite('Zend Framework - Zend_Validate');
89 $suite->addTestSuite('Zend_Validate_AbstractTest');
90 $suite->addTestSuite('Zend_Validate_AlnumTest');
91 $suite->addTestSuite('Zend_Validate_AlphaTest');
92 $suite->addTestSuite('Zend_Validate_BarcodeTest');
93 $suite->addTestSuite('Zend_Validate_BetweenTest');
94 $suite->addTestSuite('Zend_Validate_CcnumTest');
95 $suite->addTestSuite('Zend_Validate_DateTest');
96 $suite->addTest(Zend_Validate_Db_AllTests
::suite());
97 $suite->addTestSuite('Zend_Validate_DigitsTest');
98 $suite->addTestSuite('Zend_Validate_EmailAddressTest');
99 $suite->addTest(Zend_Validate_File_AllTests
::suite());
100 $suite->addTestSuite('Zend_Validate_FloatTest');
101 $suite->addTestSuite('Zend_Validate_GreaterThanTest');
102 $suite->addTestSuite('Zend_Validate_HexTest');
103 $suite->addTestSuite('Zend_Validate_HostnameTest');
104 $suite->addTestSuite('Zend_Validate_IdenticalTest');
105 $suite->addTestSuite('Zend_Validate_InArrayTest');
106 $suite->addTestSuite('Zend_Validate_IntTest');
107 $suite->addTestSuite('Zend_Validate_IpTest');
108 $suite->addTestSuite('Zend_Validate_IsbnTest');
109 $suite->addTestSuite('Zend_Validate_LessThanTest');
110 $suite->addTestSuite('Zend_Validate_MessageTest');
111 $suite->addTestSuite('Zend_Validate_NotEmptyTest');
112 $suite->addTestSuite('Zend_Validate_RegexTest');
113 $suite->addTest(Zend_Validate_Sitemap_AllTests
::suite());
114 $suite->addTestSuite('Zend_Validate_StringLengthTest');
120 if (PHPUnit_MAIN_METHOD
== 'Zend_Validate_AllTests::main') {
121 Zend_Validate_AllTests
::main();