[ZF-10089] Zend_Log
[zend.git] / tests / Zend / Captcha / AllTests.php
blob9e92cb5a75eb97d260b406ff4f9b3d48644ae84b
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_Captcha
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(__FILE__))) . DIRECTORY_SEPARATOR . 'TestHelper.php';
25 if (!defined('PHPUnit_MAIN_METHOD')) {
26 define('PHPUnit_MAIN_METHOD', 'Zend_Captcha_AllTests::main');
29 require_once 'Zend/Captcha/DumbTest.php';
30 require_once 'Zend/Captcha/FigletTest.php';
31 require_once 'Zend/Captcha/ImageTest.php';
32 require_once 'Zend/Captcha/ReCaptchaTest.php';
34 /**
35 * @category Zend
36 * @package Zend_Captcha
37 * @subpackage UnitTests
38 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
39 * @license http://framework.zend.com/license/new-bsd New BSD License
40 * @group Zend_Captcha
42 class Zend_Captcha_AllTests
44 public static function main()
46 PHPUnit_TextUI_TestRunner::run(self::suite());
49 public static function suite()
51 $suite = new PHPUnit_Framework_TestSuite('Zend Framework - Zend_Captcha');
53 $suite->addTestSuite('Zend_Captcha_DumbTest');
54 $suite->addTestSuite('Zend_Captcha_FigletTest');
55 $suite->addTestSuite('Zend_Captcha_ImageTest');
56 $suite->addTestSuite('Zend_Captcha_ReCaptchaTest');
58 return $suite;
62 if (PHPUnit_MAIN_METHOD == 'Zend_Captcha_AllTests::main') {
63 Zend_Captcha_AllTests::main();