[ZF-10060] Unittests:
[zend/radio.git] / tests / Zend / Validate / File / AllTests.php
blob393dd7bf5d15b3190a11ec4d949ff4b5c32f19c2
1 <?php
2 /**
3 * Zend Framework
5 * LICENSE
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.
15 * @category Zend
16 * @package Zend_Validate_File
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
20 * @version $Id$
23 require_once dirname(dirname(dirname(dirname(__FILE__)))) . DIRECTORY_SEPARATOR . 'TestHelper.php';
25 if (!defined('PHPUnit_MAIN_METHOD')) {
26 define('PHPUnit_MAIN_METHOD', 'Zend_Validate_File_AllTests::main');
29 require_once 'Zend/Validate/File/CountTest.php';
30 require_once 'Zend/Validate/File/Crc32Test.php';
31 require_once 'Zend/Validate/File/ExcludeExtensionTest.php';
32 require_once 'Zend/Validate/File/ExcludeMimeTypeTest.php';
33 require_once 'Zend/Validate/File/ExistsTest.php';
34 require_once 'Zend/Validate/File/ExtensionTest.php';
35 require_once 'Zend/Validate/File/FilesSizeTest.php';
36 require_once 'Zend/Validate/File/HashTest.php';
37 require_once 'Zend/Validate/File/ImageSizeTest.php';
38 require_once 'Zend/Validate/File/IsCompressedTest.php';
39 require_once 'Zend/Validate/File/IsImageTest.php';
40 require_once 'Zend/Validate/File/Md5Test.php';
41 require_once 'Zend/Validate/File/MimeTypeTest.php';
42 require_once 'Zend/Validate/File/NotExistsTest.php';
43 require_once 'Zend/Validate/File/Sha1Test.php';
44 require_once 'Zend/Validate/File/SizeTest.php';
45 require_once 'Zend/Validate/File/UploadTest.php';
46 require_once 'Zend/Validate/File/WordCountTest.php';
48 /**
49 * @category Zend
50 * @package Zend_Validate
51 * @subpackage UnitTests
52 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
53 * @license http://framework.zend.com/license/new-bsd New BSD License
54 * @group Zend_Validate
55 * @group Zend_Validate_File
57 class Zend_Validate_File_AllTests
59 public static function main()
61 PHPUnit_TextUI_TestRunner::run(self::suite());
64 public static function suite()
66 $suite = new PHPUnit_Framework_TestSuite('Zend Framework - Zend_Validate_File');
68 $suite->addTestSuite('Zend_Validate_File_CountTest');
69 $suite->addTestSuite('Zend_Validate_File_Crc32Test');
70 $suite->addTestSuite('Zend_Validate_File_ExcludeExtensionTest');
71 $suite->addTestSuite('Zend_Validate_File_ExistsTest');
72 $suite->addTestSuite('Zend_Validate_File_ExtensionTest');
73 $suite->addTestSuite('Zend_Validate_File_FilesSizeTest');
74 $suite->addTestSuite('Zend_Validate_File_HashTest');
75 $suite->addTestSuite('Zend_Validate_File_ImageSizeTest');
76 $suite->addTestSuite('Zend_Validate_File_IsCompressedTest');
77 $suite->addTestSuite('Zend_Validate_File_IsImageTest');
78 $suite->addTestSuite('Zend_Validate_File_Md5Test');
79 $suite->addTestSuite('Zend_Validate_File_MimeTypeTest');
80 $suite->addTestSuite('Zend_Validate_File_NotExistsTest');
81 $suite->addTestSuite('Zend_Validate_File_Sha1Test');
82 $suite->addTestSuite('Zend_Validate_File_SizeTest');
83 $suite->addTestSuite('Zend_Validate_File_UploadTest');
84 $suite->addTestSuite('Zend_Validate_File_WordCountTest');
86 return $suite;
90 if (PHPUnit_MAIN_METHOD == 'Zend_Validate_File_AllTests::main') {
91 Zend_Validate_File_AllTests::main();